Make sure notes are redrawn when mapping is changed.

This commit is contained in:
Jonathan Moore Liles 2008-02-13 13:48:50 -06:00
parent 742679c5ad
commit 0b2b55281f
2 changed files with 8 additions and 4 deletions

View File

@ -173,7 +173,10 @@ Canvas::changed_mapping ( void )
m.grid->draw_row_names( this ); m.grid->draw_row_names( this );
if ( m.margin_left != old_margin ) if ( m.margin_left != old_margin )
{
signal_resize(); signal_resize();
signal_draw();
}
else else
signal_draw(); signal_draw();
} }

View File

@ -150,7 +150,7 @@ if ( Fl::event() == FL_SHORTCUT && Fl::event_key() == FL_Escape )
if ( maybe_save_song() ) if ( maybe_save_song() )
quit();} open quit();} open
xywh {694 168 869 801} type Double box PLASTIC_UP_BOX color 37 resizable xclass non size_range {869 801 0 0} visible xywh {623 109 869 801} type Double box PLASTIC_UP_BOX color 37 resizable xclass non size_range {869 801 0 0} visible
} { } {
Fl_Menu_Bar menu_bar {open Fl_Menu_Bar menu_bar {open
xywh {0 0 869 30} color 37 xywh {0 0 869 30} color 37
@ -967,9 +967,9 @@ else
callback {sequence_tab->activate(); callback {sequence_tab->activate();
o->hide(); o->hide();
detach_button->value( 0 );} open detach_button->value( 0 );} open
xywh {681 189 876 675} type Double resizable visible xywh {681 189 876 675} type Double hide resizable
} { } {
Fl_Group seq_detached_group {open selected Fl_Group seq_detached_group {open
xywh {0 0 876 675} resizable xywh {0 0 876 675} resizable
} {} } {}
} }
@ -1455,7 +1455,8 @@ if ( _c )
else else
{ {
WARNING( "No canvas set for widget." ); WARNING( "No canvas set for widget." );
}} {} }} {selected
}
} }
Function {set_canvas( Canvas *c )} {open Function {set_canvas( Canvas *c )} {open
} { } {