summaryrefslogtreecommitdiff
path: root/src/xmlcomposer.cpp
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-07-27 21:34:03 +0000
committerStef Walter <stef@memberwebs.com>2004-07-27 21:34:03 +0000
commit61ff9cee67228fd5b430eb929687ca0cac992a7c (patch)
tree73e27790adf037ce31280ae92e67d494983d18bd /src/xmlcomposer.cpp
parentd2105fb3fb2082bb32875eaab6db6a2c04c7eae5 (diff)
- Element comparison fixes
- Other XML fixup fixes
Diffstat (limited to 'src/xmlcomposer.cpp')
-rw-r--r--src/xmlcomposer.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/xmlcomposer.cpp b/src/xmlcomposer.cpp
index a90c25a..6f41b29 100644
--- a/src/xmlcomposer.cpp
+++ b/src/xmlcomposer.cpp
@@ -1095,7 +1095,14 @@ ON_CHARDATA(Content)
AN_ATTRIBUTE(kAtName, font);
if(fontsize != -1)
- AN_ATTRIBUTE(kAtSize, fontsize);
+ {
+ // Little hack for half point sizes
+ wstring size = NUM_ATTR(fontsize / 2);
+ if(fontsize % 2)
+ size.append(L".5");
+
+ AN_ATTRIBUTE(kAtSize, size);
+ }
if(format.textColor() != -1)
AN_ATTRIBUTE(kAtColor, format.textColor());