From 61b23da69c19e98508e5c937f476da9a0d292528 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 7 Jul 2011 21:11:02 +0200 Subject: sync font size and color with UI --- src/flpsed.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/flpsed.cxx b/src/flpsed.cxx index 2896874..c89b82d 100644 --- a/src/flpsed.cxx +++ b/src/flpsed.cxx @@ -294,7 +294,7 @@ void save_cb() { void print_cb() { char *pref_cmd; - int r; + int r = 0; const char *print_cmd; Fl_Preferences prefs(Fl_Preferences::USER, "Johannes.HofmannATgmx.de", "flpsed"); @@ -647,7 +647,9 @@ int main(int argc, char** argv) { win->end(); win->callback((Fl_Callback *)quit_cb); - win->show(1, argv); + win->show(1, argv); + + property_changed_cb(); // sync properties with UI if (zoom_val) psed_p->zoom(zoom_val); -- cgit v1.2.3