@@ -39,7 +39,13 @@ MenuItem {
3939 // passed to QStateAction::updateState(…). The server chokes on
4040 // those values, complaining that they’re not of the right type…
4141 minimumValue: menu.extra.canonical_min ? menu.extra.canonical_min * 1.000001 : 0.0000001
42− maximumValue: menu.extra.canonical_max ? menu.extra.canonical_max * 1.000001 : 0.9999999
42+ maximumValue: {
43+ var maximum = menu.extra.canonical_max ? menu.extra.canonical_max * 1.000001 : 0.9999999
44+ if (maximum <= minimumValue) {
45+ return minimumValue + 1;
46+ }
47+ return maximum;
48+ }
4349
4450 // FIXME - to be deprecated in Ubuntu.Components.
4551 // Use this to disable the label, since there is not way to do it on the component.