public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libQGLViewer] epel10: Yet another compilation error
@ 2026-11-30 13:54 Laurent Rineau
  0 siblings, 0 replies; only message in thread
From: Laurent Rineau @ 2026-11-30 13:54 UTC (permalink / raw)
  To: git-commits

        A new commit has been pushed.

        Repo   : rpms/libQGLViewer
        Branch : epel10
        Commit : f2d463999e1d7bef60d79130b38580a03d659372
        Author : Laurent Rineau <laurent.rineau@cgal.org>
        Date   : 2016-07-15T14:26:02+02:00
        Stats  : +13/-0 in 1 file(s)
        URL    : https://src.fedoraproject.org/rpms/libQGLViewer/c/f2d463999e1d7bef60d79130b38580a03d659372?branch=epel10

        Log:
        Yet another compilation error

saveSnapshot.cpp: In member function 'bool QGLViewer::saveImageSnapshot(const QString&)':
saveSnapshot.cpp:361:43: error: invalid initialization of non-const reference of type 'GLdouble& {aka double&}' from an rvalue of type 'GLdouble {aka double}'
   camera()->getOrthoWidthHeight(xMin, yMin);
                                           ^
In file included from qglviewer.h:26:0,
                 from saveSnapshot.cpp:23:
camera.h:233:15: note:   initializing argument 1 of 'virtual void qglviewer::Camera::getOrthoWidthHeight(GLdouble&, GLdouble&) const'
  virtual void getOrthoWidthHeight(GLdouble& halfWidth, GLdouble& halfHeight) const;
               ^~~~~~~~~~~~~~~~~~~

---
diff --git a/libQGLViewer-2.6.3-qreal.patch b/libQGLViewer-2.6.3-qreal.patch
index cfc4b39..2ed69bd 100644
--- a/libQGLViewer-2.6.3-qreal.patch
+++ b/libQGLViewer-2.6.3-qreal.patch
@@ -82,3 +82,16 @@ index 9d4f6ac..3be97b3 100644
  		Vec trans(0.0, 0.0, -coef * delta);
  		translate(inverseTransformOf(trans));
  	}
+diff --git a/QGLViewer/saveSnapshot.cpp b/QGLViewer/saveSnapshot.cpp
+index c0334f5..c2b1be8 100644
+--- a/QGLViewer/saveSnapshot.cpp
++++ b/QGLViewer/saveSnapshot.cpp
+@@ -321,7 +321,7 @@ bool QGLViewer::saveImageSnapshot(const QString& fileName)
+        qreal zNear = camera()->zNear();
+        qreal zFar = camera()->zFar();
+ 
+-       qreal xMin, yMin;
++       QGLdouble xMin, yMin;
+        bool expand = imageInterface->expandFrustum->isChecked();
+        if (camera()->type() == qglviewer::Camera::PERSPECTIVE)
+                if ((expand && (newAspectRatio>aspectRatio)) || (!expand && (newAspectRatio<aspectRatio)))

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 13:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 13:54 [rpms/libQGLViewer] epel10: Yet another compilation error Laurent Rineau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox