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

List:       kde-commits
Subject:    koffice/plugins/pathshapes/enhancedpath
From:       Sven Langkamp <sven.langkamp () gmail ! com>
Date:       2010-11-10 20:55:28
Message-ID: 20101110205528.40B35AC89E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1195327 by langkamp:

fix mirror attribute

 M  +7 -6      EnhancedPathShape.cpp  


--- trunk/koffice/plugins/pathshapes/enhancedpath/EnhancedPathShape.cpp \
#1195326:1195327 @@ -341,6 +341,13 @@
         context.xmlWriter().startElement("draw:enhanced-geometry");
         context.xmlWriter().addAttribute("svg:viewBox", QString("%1 %2 %3 \
%4").arg(m_viewBox.x()).arg(m_viewBox.y()).arg(m_viewBox.width()).arg(m_viewBox.height()));
  
+        if (m_mirrorHorizontally) {
+            context.xmlWriter().addAttribute("draw:mirror-horizontal", "true");
+        }
+        if (m_mirrorVertically) {
+            context.xmlWriter().addAttribute("draw:mirror-vertical", "true");
+        }
+        
         QString modifiers;
         foreach (qreal modifier, m_modifiers)
             modifiers += QString::number(modifier) + ' ';
@@ -368,12 +375,6 @@
             parent()->saveOdfChildElements(context);
         context.xmlWriter().endElement(); // draw:custom-shape
 
-        if (m_mirrorHorizontally) {
-            context.xmlWriter().addAttribute("draw:mirror-horizontal", "true");
-        }
-        if (m_mirrorVertically) {
-            context.xmlWriter().addAttribute("draw:mirror-vertical", "true");
-        }
     } else {
         KoPathShape::saveOdf(context);
     }


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

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