r16239 by jghali - #9526, svg export crash : backport Franz fix from 1.5.0svn
scribus-commit
scribus-commit at lists.scribus.net
Mon Jan 10 22:29:32 CET 2011
Author: jghali
Date: Mon Jan 10 21:29:32 2011
New Revision: 16239
URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16239
Log:
#9526, svg export crash : backport Franz fix from 1.5.0svn
Modified:
branches/Version135/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp
Modified: branches/Version135/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16239&path=/branches/Version135/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp (original)
+++ branches/Version135/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp Mon Jan 10 21:29:32 2011
@@ -28,7 +28,7 @@
#include <QBuffer>
#include <QList>
#include <QCheckBox>
-#include <QSharedPointer>
+#include <QScopedPointer>
#include "svgexplugin.h"
@@ -125,7 +125,7 @@
{
PrefsContext* prefs = PrefsManager::instance()->prefsFile->getPluginContext("svgex");
QString wdir = prefs->get("wdir", ".");
- QSharedPointer<CustomFDialog> openDia( new CustomFDialog(doc->scMW(), wdir, QObject::tr("Save as"), QObject::tr("%1;;All Files (*)").arg(FormatsManager::instance()->extensionsForFormat(FormatsManager::SVG)), fdHidePreviewCheckBox) );
+ QScopedPointer<CustomFDialog> openDia( new CustomFDialog(doc->scMW(), wdir, QObject::tr("Save as"), QObject::tr("%1;;All Files (*)").arg(FormatsManager::instance()->extensionsForFormat(FormatsManager::SVG)), fdHidePreviewCheckBox) );
openDia->setSelection(getFileNameByPage(doc, doc->currentPage()->pageNr(), "svg"));
openDia->setExtension("svg");
openDia->setZipExtension("svgz");
@@ -158,7 +158,6 @@
Options.inlineImages = inlineImages->isChecked();
Options.exportPageBackground = exportBack->isChecked();
Options.compressFile = compress->isChecked();
- openDia.clear();
if (fileName.isEmpty())
return true;
More information about the scribus-commit
mailing list