[ptx] hugin and gtk2

Bruno Postle bruno at postle.net
Sun Nov 16 12:22:25 GMT 2003


On Sat 15-Nov-2003 at 04:19:15PM +0000, Bruno Postle wrote:
> 
> Everything seems to work fine, except the panorama preview
> segfaults.

I tracked it down to some iso8859-1 "degree" characters in
PreviewFrame.cpp, I guess that everything in these source-files
should be utf-8?

Anyway, this patch fixes it:

--- PreviewFrame.cpp.old        2003-11-16 12:08:25.000000000 +0000
+++ PreviewFrame.cpp    2003-11-16 12:10:11.000000000 +0000
@@ -207,7 +207,7 @@
         projection = _("equirectangular");
         break;
     }
-    SetStatusText(wxString::Format("%.1f° x %.1f°, %s", opts.HFOV, opts.VFOV,
+    SetStatusText(wxString::Format("%.1f x %.1f, %s", opts.HFOV, opts.VFOV,
                                    projection.c_str()),1);
     m_HFOVSlider->SetValue((int) round(opts.HFOV));
     m_VFOVSlider->SetValue((int) round(opts.VFOV));

-- 
Bruno


More information about the ptX mailing list