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

List:       kde-commits
Subject:    koffice/krita/image/recorder
From:       Cyrille Berger <cyb () lepi ! org>
Date:       2010-02-09 9:56:19
Message-ID: 1265709379.050068.13489.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1087520 by berger:

fix play back of fill paint and loading/saving


 M  +2 -0      kis_recorded_action_factory_registry.cc  
 M  +4 -1      kis_recorded_fill_paint_action.cpp  


--- trunk/koffice/krita/image/recorder/kis_recorded_action_factory_registry.cc \
#1087519:1087520 @@ -20,6 +20,7 @@
 #include "kis_recorded_filter_action.h"
 #include "kis_recorded_path_paint_action.h"
 #include "kis_recorded_shape_paint_action.h"
+#include "kis_recorded_fill_paint_action.h"
 
 #include <kglobal.h>
 #include <kis_debug.h>
@@ -36,6 +37,7 @@
     add(new KisRecordedFilterActionFactory);
     add(new KisRecordedPathPaintActionFactory);
     add(new KisRecordedShapePaintActionFactory);
+    add(new KisRecordedFillPaintActionFactory);
 }
 
 KisRecordedActionFactoryRegistry::~KisRecordedActionFactoryRegistry()
--- trunk/koffice/krita/image/recorder/kis_recorded_fill_paint_action.cpp \
#1087519:1087520 @@ -55,8 +55,9 @@
     delete d;
 }
 
-void KisRecordedFillPaintAction::toXML(QDomDocument& /*doc*/, QDomElement& elt, \
KisRecordedActionSaveContext* ) const +void \
KisRecordedFillPaintAction::toXML(QDomDocument& doc, QDomElement& elt, \
KisRecordedActionSaveContext* context) const  {
+    KisRecordedPaintAction::toXML(doc, elt, context);
     elt.setAttribute("x", d->pt.x());
     elt.setAttribute("y", d->pt.y());
     elt.setAttribute("projectionPath", d->projectionPath.toString());
@@ -81,6 +82,8 @@
         projection = nodes[0]->projection();
     }
     KisFillPainter* painter = static_cast<KisFillPainter*>(_painter);
+    painter->setWidth(info.image()->width());
+    painter->setHeight(info.image()->height());
     if (fillStyle() == KisPainter::FillStylePattern)
     {
         painter->fillPattern(d->pt.x(), d->pt.y(), projection);


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

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