Replaced various '#define' with actual strings - part 5

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/10/head
Michele Calgaro 12 months ago
parent c0011af8f1
commit 12a1ec2b37
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -881,12 +881,12 @@ void ItemDocument::exportToImage()
saveArea = m_canvas->rect(); saveArea = m_canvas->rect();
if ( type == "PNG" || type == "BMP" ) if ( type == "PNG" || type == "BMP" )
outputImage = TQT_TQPAINTDEVICE(new TQPixmap( saveArea.size() )); outputImage = new TQPixmap( saveArea.size() );
else if ( type == "SVG" ) else if ( type == "SVG" )
{ {
setSVGExport(true); setSVGExport(true);
outputImage = TQT_TQPAINTDEVICE(new TQPicture()); outputImage = new TQPicture();
// svg can't be cropped using the qimage method. // svg can't be cropped using the qimage method.
saveArea = cropArea; saveArea = cropArea;
} }

Loading…
Cancel
Save