summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/itemdocument.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/itemdocument.cpp b/src/itemdocument.cpp
index 7ed27dd..a8dc42b 100644
--- a/src/itemdocument.cpp
+++ b/src/itemdocument.cpp
@@ -881,12 +881,12 @@ void ItemDocument::exportToImage()
saveArea = m_canvas->rect();
if ( type == "PNG" || type == "BMP" )
- outputImage = TQT_TQPAINTDEVICE(new TQPixmap( saveArea.size() ));
+ outputImage = new TQPixmap( saveArea.size() );
else if ( type == "SVG" )
{
setSVGExport(true);
- outputImage = TQT_TQPAINTDEVICE(new TQPicture());
+ outputImage = new TQPicture();
// svg can't be cropped using the qimage method.
saveArea = cropArea;
}