summaryrefslogtreecommitdiff
path: root/vcl/source/window/builder.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-07-08 16:27:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-07-08 18:40:11 +0100
commitd0e65716347377628635c053ccb425d6284e3533 (patch)
tree02b9e186282577a295a9fefaa35dd1fdb8ea1f82 /vcl/source/window/builder.cxx
parent94956b3b29ae761a793363ec9e9e27fb612d7444 (diff)
add degrees and pixels as known spin field units
Change-Id: I5937843a5c5485f469ef1fb6b5844aa15c33a14d
Diffstat (limited to 'vcl/source/window/builder.cxx')
-rw-r--r--vcl/source/window/builder.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index ed66c5d74be0..37d54a08bc5a 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -782,6 +782,10 @@ namespace
eUnit = FUNIT_LINE;
else if (sUnit == "%")
eUnit = FUNIT_PERCENT;
+ else if ((sUnit == "pixels") || (sUnit == "pixel") || (sUnit == "px"))
+ eUnit = FUNIT_PIXEL;
+ else if ((sUnit == "degrees") || (sUnit == "degree"))
+ eUnit = FUNIT_DEGREE;
else if (sUnit != "0")
eUnit = FUNIT_CUSTOM;