comparison libinterp/corefcn/graphics.in.h @ 19718:2b93834e5ede

Update tightinset when "font*" properties are changed (bug #39581) * graphics.in.h (axes::properties::update_fontname, axes::properties::update_fontsize, axes::properties::update_fontangle, axes::properties::update_fontweight): call sync_positions () to update the tightinset and position.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Mon, 09 Feb 2015 21:36:01 +0100
parents c17e1cefdbd3
children 4197fc428c7d
comparison
equal deleted inserted replaced
19717:f96671da51a6 19718:2b93834e5ede
4088 if (zticklabelmode.is ("auto")) 4088 if (zticklabelmode.is ("auto"))
4089 calc_ticklabels (ztick, zticklabel, zscale.is ("log")); 4089 calc_ticklabels (ztick, zticklabel, zscale.is ("log"));
4090 } 4090 }
4091 4091
4092 void update_font (void); 4092 void update_font (void);
4093 void update_fontname (void) { update_font (); } 4093 void update_fontname (void)
4094 void update_fontsize (void) { update_font (); } 4094 {
4095 void update_fontangle (void) { update_font (); } 4095 update_font ();
4096 void update_fontweight (void) { update_font (); } 4096 sync_positions ();
4097 }
4098 void update_fontsize (void)
4099 {
4100 update_font ();
4101 sync_positions ();
4102 }
4103 void update_fontangle (void)
4104 {
4105 update_font ();
4106 sync_positions ();
4107 }
4108 void update_fontweight (void)
4109 {
4110 update_font ();
4111 sync_positions ();
4112 }
4097 4113
4098 void update_outerposition (void) 4114 void update_outerposition (void)
4099 { 4115 {
4100 set_activepositionproperty ("outerposition"); 4116 set_activepositionproperty ("outerposition");
4101 caseless_str old_units = get_units (); 4117 caseless_str old_units = get_units ();