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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 12a1ec2b37)
r14.1.x
Michele Calgaro 7 months ago
parent 669d1daaa9
commit f5d0ed0eeb
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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;
}

Loading…
Cancel
Save