summaryrefslogtreecommitdiff
path: root/src/config/ConfigurationInterfaces.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/ConfigurationInterfaces.vala')
-rw-r--r--src/config/ConfigurationInterfaces.vala11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/config/ConfigurationInterfaces.vala b/src/config/ConfigurationInterfaces.vala
index 29a3604..a9636ef 100644
--- a/src/config/ConfigurationInterfaces.vala
+++ b/src/config/ConfigurationInterfaces.vala
@@ -1515,7 +1515,16 @@ public abstract class ConfigurationFacade : Object {
//
public virtual int get_printing_size_selection() {
try {
- return get_engine().get_int_property(ConfigurableProperty.PRINTING_SIZE_SELECTION) - 1;
+ var val = get_engine().get_int_property(ConfigurableProperty.PRINTING_SIZE_SELECTION) - 1;
+ if (val == -2) {
+ if (Resources.get_default_measurement_unit() == Resources.UnitSystem.IMPERIAL) {
+ val = 2;
+ } else {
+ val = 10;
+ }
+ }
+
+ return val;
} catch (ConfigurationError err) {
on_configuration_error(err);