File GreatCircles-image.patch of Package hugin

--- hugin-2018.0.0/src/hugin1/hugin/GreatCircles.cpp.o	2018-06-25 22:23:38.000000000 +0200
+++ hugin-2018.0.0/src/hugin1/hugin/GreatCircles.cpp	2018-06-26 19:23:54.000000000 +0200
@@ -66,6 +66,18 @@
     GreatCircleArc(startLat, startLong, endLat, endLong, *m_visualizationState).draw(true, width);
 }
 
+class EquirectangularImage : public HuginBase::SrcPanoImage
+{
+public:
+    EquirectangularImage() : HuginBase::SrcPanoImage()
+    {
+        setProjection(HuginBase::SrcPanoImage::EQUIRECTANGULAR);
+        setHFOV(360.0);
+        setSize(vigra::Size2D(360.0, 180.0));
+    }
+};
+
+
 GreatCircleArc::GreatCircleArc() : m_xscale(DBL_MAX), m_visualizationState(NULL)
 {
 }
@@ -79,10 +91,7 @@
     // get the output projection
     const HuginBase::PanoramaOptions & options = *(visualizationState.GetOptions());
     // make an image to transform spherical coordinates into the output projection
-    HuginBase::SrcPanoImage equirectangularImage;
-    equirectangularImage.setProjection(HuginBase::SrcPanoImage::EQUIRECTANGULAR);
-    equirectangularImage.setHFOV(360.0);
-    equirectangularImage.setSize(vigra::Size2D(360.0, 180.0));
+    static EquirectangularImage equirectangularImage;
     
     // make a transformation from spherical coordinates to the output projection
     HuginBase::PTools::Transform transform;
openSUSE Build Service is sponsored by