Hi.

As promised, I'm attaching a patch that seems to fix the bug rather than
workarounding it.

Given that the bug is really old, RC and without reaction by the
maintainer, I'm NMU-ing with 3 days of delay.

Giovanni.
-- 
Giovanni Mascellani <[email protected]>
Pisa, Italy

Web: http://poisson.phc.unipi.it/~mascellani
Jabber: [email protected] / [email protected]
diff -u qtpfsgui-1.9.3/debian/changelog qtpfsgui-1.9.3/debian/changelog
--- qtpfsgui-1.9.3/debian/changelog
+++ qtpfsgui-1.9.3/debian/changelog
@@ -1,3 +1,10 @@
+qtpfsgui (1.9.3-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fixing segmentation fault when saving a HDR image (closes: #536666).
+
+ -- Giovanni Mascellani <[email protected]>  Mon, 30 Aug 2010 23:08:43 +0200
+
 qtpfsgui (1.9.3-1) unstable; urgency=low
 
   [ Cyril Brulebois ]
diff -u qtpfsgui-1.9.3/debian/patches/series qtpfsgui-1.9.3/debian/patches/series
--- qtpfsgui-1.9.3/debian/patches/series
+++ qtpfsgui-1.9.3/debian/patches/series
@@ -5,0 +6 @@
+60_fix_segfault_536666
only in patch2:
unchanged:
--- qtpfsgui-1.9.3.orig/debian/patches/60_fix_segfault_536666
+++ qtpfsgui-1.9.3/debian/patches/60_fix_segfault_536666
@@ -0,0 +1,23 @@
+Index: qtpfsgui-1.9.3/src/MainWindow/mainWindow.cpp
+===================================================================
+--- qtpfsgui-1.9.3.orig/src/MainWindow/mainWindow.cpp	2010-08-30 23:07:48.000000000 +0200
++++ qtpfsgui-1.9.3/src/MainWindow/mainWindow.cpp	2010-08-30 23:08:02.000000000 +0200
+@@ -274,11 +274,13 @@
+ 			normalSizeAct->setEnabled(true);
+ 		}
+ 	} else {
+-		currenthdr=NULL;
+-		normalSizeAct->setEnabled(false);
+-		zoomInAct->setEnabled(false);
+-		zoomOutAct->setEnabled(false);
+-		fitToWindowAct->setEnabled(false);
++		if (mdiArea->subWindowList().empty()) {
++			currenthdr=NULL;
++			normalSizeAct->setEnabled(false);
++			zoomInAct->setEnabled(false);
++			zoomOutAct->setEnabled(false);
++			fitToWindowAct->setEnabled(false);
++		}
+ 	}
+ }
+ 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to