[Libreoffice-commits] core.git: cui/uiconfig vcl/source
Miklos Vajna
vmiklos at suse.cz
Mon Mar 4 03:18:42 PST 2013
cui/uiconfig/ui/gradientpage.ui | 2 +-
vcl/source/window/builder.cxx | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 35a2f39de795fca22696224d4490224a6cf93d21
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Mon Mar 4 12:07:34 2013 +0100
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
diff --git a/cui/uiconfig/ui/gradientpage.ui b/cui/uiconfig/ui/gradientpage.ui
index d0eafe6..bea9f2e 100644
--- a/cui/uiconfig/ui/gradientpage.ui
+++ b/cui/uiconfig/ui/gradientpage.ui
@@ -153,7 +153,7 @@
</packing>
</child>
<child>
- <object class="GtkSpinButton" id="anglemtr: degrees">
+ <object class="GtkSpinButton" id="anglemtr:0">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">â</property>
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 3716a02..58afbe4 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -684,7 +684,9 @@ namespace
else if (sUnit == "%")
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;
}
More information about the Libreoffice-commits
mailing list