diff options
author | Stef Walter <stef@memberwebs.com> | 2004-07-27 21:34:03 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-07-27 21:34:03 +0000 |
commit | 61ff9cee67228fd5b430eb929687ca0cac992a7c (patch) | |
tree | 73e27790adf037ce31280ae92e67d494983d18bd /src/xmlcomposer.cpp | |
parent | d2105fb3fb2082bb32875eaab6db6a2c04c7eae5 (diff) |
- Element comparison fixes
- Other XML fixup fixes
Diffstat (limited to 'src/xmlcomposer.cpp')
-rw-r--r-- | src/xmlcomposer.cpp | 9 |
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()); |