tag 536666 patch
severity 536666 important
thank you

Mmm, I hit this bug hard today, I found the attached workaround in
some comments of qtpfsgui trunk - it seems like it's superseded now,
but it applies cleanly to the version in debian, and it works.
Raising the severity, loosing all the work just while saving is quite
a bug, even though one still has the possibility to save tonemapped
LDR images.
Cheers,

Luca
diff -urN qtpfsgui-1.9.3/src/MainWindow/mainWindow.cpp qtpfsgui-1.9.3.new/src/MainWindow/mainWindow.cpp
--- qtpfsgui-1.9.3/src/MainWindow/mainWindow.cpp	2009-01-08 18:22:41.000000000 +0100
+++ qtpfsgui-1.9.3.new/src/MainWindow/mainWindow.cpp	2010-03-16 19:34:01.374595189 +0100
@@ -180,6 +180,7 @@
 {
 	if (currenthdr==NULL)
 		return;
+	HdrViewer* workaround = currenthdr;
 
 	QString filetypes = tr("All Hdr formats ");
 	filetypes += "(*.exr *.hdr *.pic *.tiff *.tif *.pfs);;" ;
@@ -194,7 +195,8 @@
 			RecentDirHDRSetting,
 			filetypes
 	);
-
+	
+	currenthdr = workaround
 	if(!fname.isEmpty()) {
 		QFileInfo qfi(fname);
 		QString absoluteFileName=qfi.absoluteFilePath();

Reply via email to