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