Kaydet (Commit) 35a2f39d authored tarafından Miklos Vajna's avatar Miklos Vajna

vcl: don't assert when lack of unit is intentional

The Writer zoom dialog had this issue. Also change the drawinglayer
gradient background tabpage to stop using a custom unit text, when the
real unit text will be set from code anyway.

Change-Id: Ib2e12572abb5c407b7c49dfa4a34dbdd6b6068d4
üst 0ed226d2
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkSpinButton" id="anglemtr: degrees"> <object class="GtkSpinButton" id="anglemtr:0">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="invisible_char"></property> <property name="invisible_char"></property>
......
...@@ -684,7 +684,9 @@ namespace ...@@ -684,7 +684,9 @@ namespace
else if (sUnit == "%") else if (sUnit == "%")
eUnit = FUNIT_PERCENT; eUnit = FUNIT_PERCENT;
assert(eUnit != FUNIT_NONE); //unknown unit // if lack of unit is not intentional
if (sUnit != "0")
assert(eUnit != FUNIT_NONE); //unknown unit
return eUnit; return eUnit;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment