Invalidate char_pixel_* on possible font change
[ardour.git] / gtk2_ardour / ardour_button.cc
index fbc6defdc1b947597a77e221c7baffd0f41458d7..df6311604ade2d73a73e783b99d5f50eb54b2f1d 100644 (file)
@@ -965,6 +965,11 @@ ArdourButton::on_style_changed (const RefPtr<Gtk::Style>&)
 {
        _update_colors = true;
        CairoWidget::set_dirty ();
+       _char_pixel_width = 0;
+       _char_pixel_height = 0;
+       if (is_realized()) {
+               queue_resize ();
+       }
 }
 
 void