diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-12-14 23:55:21 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-12-14 23:55:21 +0100 |
| commit | f57b074378d69d19eb5a70e6335054bada06919a (patch) | |
| tree | 85c31d6057e78b8be874c5f476eaf9f9552a171d /fluid | |
| parent | f76e579ffec32aaf1095d37aaf4a54780fd20b6c (diff) | |
Fix trailing whitespace and a MSVC compiler warning
No code changes
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/print_panel.cxx | 6 | ||||
| -rw-r--r-- | fluid/template_panel.cxx | 28 |
2 files changed, 17 insertions, 17 deletions
diff --git a/fluid/print_panel.cxx b/fluid/print_panel.cxx index 85dc22321..0d688d403 100644 --- a/fluid/print_panel.cxx +++ b/fluid/print_panel.cxx @@ -214,14 +214,14 @@ Fl_Button *print_output_mode[4]={(Fl_Button *)0}; static void cb_Save(Fl_Return_Button*, void*) { print_properties_panel->hide(); - + char name[1024]; int val; const char *printer = (const char *)print_choice->menu()[print_choice->value()].user_data(); - + snprintf(name, sizeof(name), "%s/page_size", printer); fluid_prefs.set(name, print_page_size->value()); - + snprintf(name, sizeof(name), "%s/output_mode", printer); for (val = 0; val < 4; val ++) { if (print_output_mode[val]->value()) break; diff --git a/fluid/template_panel.cxx b/fluid/template_panel.cxx index 69bd295ec..0c4db0d32 100644 --- a/fluid/template_panel.cxx +++ b/fluid/template_panel.cxx @@ -38,7 +38,7 @@ static void cb_template_panel(Fl_Double_Window*, void*) { Fl_Shared_Image *img = (Fl_Shared_Image *)template_preview->image(); if (img) img->release(); template_preview->image(0); - + template_browser->deselect(); template_name->value(""); template_instance->value(""); @@ -56,38 +56,38 @@ static void cb_template_browser(Fl_Browser*, void*) { if (img) img->release(); template_preview->image(0); template_preview->redraw(); - + int item = template_browser->value(); - + if (item <= 1) template_instance->deactivate(); else template_instance->activate(); - + if (item < 1) { template_submit->deactivate(); template_delete->deactivate(); return; } - + template_submit->activate(); - + const char *flfile = (const char *)template_browser->data(item); if (!flfile) { template_delete->deactivate(); return; } - + template_name->value(template_browser->text(item)); - + template_delete->activate(); - + char pngfile[1024], *ext; - + strlcpy(pngfile, flfile, sizeof(pngfile)); if ((ext = strrchr(pngfile, '.')) == NULL) return; strcpy(ext, ".png"); - + img = Fl_Shared_Image::get(pngfile); - + if (img) { template_preview->image(img); template_preview->redraw(); @@ -113,7 +113,7 @@ static void cb_Cancel(Fl_Button*, void*) { Fl_Shared_Image *img = (Fl_Shared_Image *)template_preview->image(); if (img) img->release(); template_preview->image(0); - + template_browser->deselect(); template_name->value(""); template_instance->value(""); @@ -126,7 +126,7 @@ static void cb_template_submit(Fl_Return_Button*, void*) { Fl_Shared_Image *img = (Fl_Shared_Image *)template_preview->image(); if (img) img->release(); template_preview->image(0); - + template_panel->hide(); } |
