[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/koffice-essen/filters/libmsooxml
From:       Sebastian Sauer <mail () dipe ! org>
Date:       2010-11-29 19:02:59
Message-ID: 20101129190259.9774BAC8A3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1202119 by sebsauer:

Fix picture-bullet size cannot be just the size of the image. This fixes slide #5 in \
SpidaCalc.pptx.

 M  +8 -2      MsooXmlUtils.cpp  


--- branches/work/koffice-essen/filters/libmsooxml/MsooXmlUtils.cpp #1202118:1202119
@@ -1500,8 +1500,14 @@
     }
 
     if (!m_bulletSize.isEmpty()) {
-        returnValue += QString("fo:width=\"%1\" fo:height=\"%2\" \
                ").arg(MSOOXML::Utils::cmString(POINT_TO_CM(m_bulletSize.width()))).
-            arg(MSOOXML::Utils::cmString(POINT_TO_CM(m_bulletSize.height())));
+        //TODO sebsauer 2010-11-29; this does not work cause m_bulletSize is set in \
MsooXmlCommonReaderDrawingMLImpl.h to be the +        //size of the image but that's \
not correct cause the image can be much larger then the bullet itself (e.g. the same \
image +        //can be used in the document for different things like as background- \
and bullet-image and the sizes are independ of the +        //original size of the \
picture. So, for now we are just hardcoding a width+height of 20pt. +        
+        //returnValue += QString("fo:width=\"%1\" fo:height=\"%2\" \
").arg(MSOOXML::Utils::cmString(POINT_TO_CM(m_bulletSize.width()))). +        //    \
arg(MSOOXML::Utils::cmString(POINT_TO_CM(m_bulletSize.height()))); +        \
returnValue += QString("fo:width=\"20pt\" fo:height=\"20pt\" ");  }
 
     returnValue += "/>";


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic