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

Akarsh Simha akarsh.simha at kdemail.net
Mon May 13 00:42:53 UTC 2013


Git commit acc56f2522226fddeb1b4a21cda4f7c28c8ad83c by Akarsh Simha.
Committed on 13/05/2013 at 02:28.
Pushed by asimha into branch 'bleeding-edge'.

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/acc56f2522226fddeb1b4a21cda4f7c28c8ad83c

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