[Kstars-devel] [kstars] kstars: Fix crash while exporting image

Akarsh Simha akarsh.simha at kdemail.net
Mon May 13 00:34:33 UTC 2013


Git commit b5dda063e8f149b6a5a0cf70e1900bcc1c31c522 by Akarsh Simha.
Committed on 13/05/2013 at 02:28.
Pushed by asimha into branch 'master'.

Fix crash while exporting image

The crash in setLegendAlpha() while exporting images, introduced when
I separated the ExportImageDialog dialog from the ImageExporter
"backend", was (most likely) caused because of an uninitialized
ImageExporter pointer. This caused ImageExporter to never be
constructed, but used, naturally leading to a crash. This should
hopefully fix the bug. More testing is necessary, but preliminary
testing shows that it works.

CCMAIL: kstars-devel at kde.org

M  +1    -0    kstars/kstars.cpp

http://commits.kde.org/kstars/b5dda063e8f149b6a5a0cf70e1900bcc1c31c522

diff --git a/kstars/kstars.cpp b/kstars/kstars.cpp
index c676349..0af2527 100644
--- a/kstars/kstars.cpp
+++ b/kstars/kstars.cpp
@@ -58,6 +58,7 @@ KStars::KStars( bool doSplash, bool clockrun, const QString &startdate )
       imgExportDialog(0), obsList(0), execute(0),
       avt(0), wut(0), skycal(0), sb(0), pv(0), jmt(0), mpt(0),
       fm(0), astrocalc(0), printingWizard(0), ekosmenu(0),
+      imageExporter(0),
       DialogIsObsolete(false), StartClockRunning( clockrun ),
       StartDateString( startdate )
 {


More information about the Kstars-devel mailing list