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

List:       koffice-devel
Subject:    [PATCH] Kriat compile fix
From:       Andras Mantia <amantia () freemail ! hu>
Date:       2003-01-28 15:20:31
[Download RAW message or body]

Hi,

 The attached patches fix compilation of Krita on SuSE 8.0, using gcc 2.95.3. 
Please commit, or if there are no objections I may also commit. (I known, the 
kis_view patch looks more like a hack...)

Andras
-- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org

["kis_doc.cc.diff" (text/x-diff)]

--- kis_doc.cc.orig	Tue Jan 28 13:23:53 2003
+++ kis_doc.cc	Tue Jan 28 17:06:41 2003
@@ -540,7 +540,7 @@
 						KisLayerSP layer = loadLayer(child.toElement(), img);
 
 						if (!layer)
-							return false;
+							return 0;
 
 						img -> add(layer, -1);
 					}
@@ -549,7 +549,7 @@
 						KisChannelSP channel = loadChannel(child.toElement(), img);
 
 						if (!channel)
-							return false;
+							return 0;
 
 						img -> add(channel, -1);
 					}

["kis_view.cc.diff" (text/x-diff)]

--- kis_view.cc.orig	Tue Jan 28 17:13:40 2003
+++ kis_view.cc	Tue Jan 28 17:17:33 2003
@@ -66,11 +66,11 @@
 #include "kis_itemchooser.h"
 #include "kis_factory.h"
 #include "kis_guide.h"
+#include "kis_paint_device.h"	//must be before kis_painter.h 
 #include "kis_painter.h"
 #include "kis_layer.h"
 #include "kis_listbox.h"
 #include "kis_dlg_paint_properties.h"
-#include "kis_paint_device.h"
 #include "kis_resource_mediator.h"
 #include "kis_resourceserver.h"
 #include "kis_ruler.h"
@@ -2329,7 +2329,11 @@
 
 	if (img) {
 		KisSelectionSP selection = img -> selection();
-		KisLayerSP layer = selection ? selection.data() : img -> activeLayer();
+		KisLayerSP layer;
+		if (selection)
+		    layer = selection.data();
+		else
+		    layer = img -> activeLayer();
 
 		if (layer) {
 			KisImageSP dupedImg = new KisImage(m_doc, layer -> width(), layer -> height(), \
img -> nativeImgType(), m_doc -> nextImageName());


_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel

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

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