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

List:       kde-commits
Subject:    koffice/filters
From:       Lassi Taneli Nieminen <lassniem () gmail ! com>
Date:       2010-11-15 10:33:13
Message-ID: 20101115103313.70B5FAC8A0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1197287 by lassin:

Re-enabled docx filter to support negative indentation.


 M  +0 -5      kword/docx/DocxXmlDocumentReader.cpp  
 M  +1 -1      libmsooxml/MsooXmlCommonReaderDrawingMLImpl.h  


--- trunk/koffice/filters/kword/docx/DocxXmlDocumentReader.cpp #1197286:1197287
@@ -2669,13 +2669,8 @@
     bool ok = false;
     const qreal leftInd = qreal(TWIP_TO_POINT(left.toDouble(&ok)));
     if (ok) {
-        // Note, kword does not support atm. displaying text in negative indents
-        // as a result, text is cut, this makes the indent of such text 0
-        // Remove ME once kword support is there.
-        if (leftInd > 0) {
             m_currentParagraphStyle.addPropertyPt("fo:margin-left", leftInd);
         }
-    }
 
     TRY_READ_ATTR(firstLine)
     const qreal firstInd = qreal(TWIP_TO_POINT(firstLine.toDouble(&ok)));
--- trunk/koffice/filters/libmsooxml/MsooXmlCommonReaderDrawingMLImpl.h #1197286:1197287
@@ -287,7 +287,7 @@
         m_currentDrawingObject->setPicture(picture);
 #endif
 
-#ifndef DOCXXMLDOCREADER_H
+#ifndef DOCXXMLDOCREADER_CPP
     popCurrentDrawStyle();
 #endif
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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