public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Laurent Rineau <laurent.rineau@cgal.org>
To: git-commits@fedoraproject.org
Subject: [rpms/libQGLViewer] epel10: Yet another compilation error
Date: Mon, 30 Nov 2026 13:54:53 GMT [thread overview]
Message-ID: <179604689368.1.5268991938716961648.rpms-libQGLViewer-f2d463999e1d@fedoraproject.org> (raw)
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)))
reply other threads:[~2026-11-30 13:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179604689368.1.5268991938716961648.rpms-libQGLViewer-f2d463999e1d@fedoraproject.org \
--to=laurent.rineau@cgal.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox