diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2006-06-12 02:32:16 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-06-12 02:32:16 +0000 |
commit | 35756b38644511ec02ffa10ab482204a38215733 (patch) | |
tree | b828be2837010b6f0e84085930301adae52b06df /gtk/gtkprintoperation-win32.c | |
parent | b8eaa0877ac1489390833becab662dfee689174d (diff) | |
download | gtk+-35756b38644511ec02ffa10ab482204a38215733.tar.gz |
store scale in percent
Diffstat (limited to 'gtk/gtkprintoperation-win32.c')
-rw-r--r-- | gtk/gtkprintoperation-win32.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c index 8184846604..f47f763dc6 100644 --- a/gtk/gtkprintoperation-win32.c +++ b/gtk/gtkprintoperation-win32.c @@ -677,8 +677,7 @@ devmode_to_settings (GtkPrintSettings *settings, } if (devmode->dmFields & DM_SCALE) - gtk_print_settings_set_scale (settings, - devmode->dmScale / 100.0); + gtk_print_settings_set_scale (settings, devmode->dmScale); if (devmode->dmFields & DM_COPIES) gtk_print_settings_set_n_copies (settings, @@ -959,7 +958,7 @@ devmode_from_settings (GtkPrintSettings *settings, if (gtk_print_settings_has_key (settings, GTK_PRINT_SETTINGS_SCALE)) { devmode->dmFields |= DM_SCALE; - devmode->dmScale = gtk_print_settings_get_scale (settings) * 100; + devmode->dmScale = gtk_print_settings_get_scale (settings); } if (gtk_print_settings_has_key (settings, GTK_PRINT_SETTINGS_N_COPIES)) |