public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libQGLViewer] epel10: Fix 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 : a37ee738bde7c2766723ffe95d808e81d7868517
Author : Laurent Rineau <laurent.rineau@cgal.org>
Date : 2016-07-15T14:06:29+02:00
Stats : +14/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/libQGLViewer/c/a37ee738bde7c2766723ffe95d808e81d7868517?branch=epel10
Log:
Fix another compilation error
---
diff --git a/libQGLViewer-2.6.3-qreal.patch b/libQGLViewer-2.6.3-qreal.patch
index 4aeb0f3..cfc4b39 100644
--- a/libQGLViewer-2.6.3-qreal.patch
+++ b/libQGLViewer-2.6.3-qreal.patch
@@ -68,3 +68,17 @@ index 49f27e8..0ed7bed 100644
void setFromRotatedBase(const Vec& X, const Vec& Y, const Vec& Z);
#endif
void setFromRotationMatrix(const qreal m[3][3]);
+diff --git a/QGLViewer/manipulatedCameraFrame.cpp b/QGLViewer/manipulatedCameraFrame.cpp
+index 9d4f6ac..3be97b3 100644
+--- a/QGLViewer/manipulatedCameraFrame.cpp
++++ b/QGLViewer/manipulatedCameraFrame.cpp
+@@ -196,7 +196,8 @@ void ManipulatedCameraFrame::zoom(qreal delta, const Camera * const camera) {
+ if (direction.norm() > 0.02 * sceneRadius || delta > 0.0)
+ translate(delta * direction);
+ } else {
+- const qreal coef = qMax(fabs((camera->frame()->coordinatesOf(camera->pivotPoint())).z), 0.2 * sceneRadius);
++ const qreal coef = qMax(fabs((camera->frame()->coordinatesOf(camera->pivotPoint())).z),
++ qreal(0.2) * sceneRadius);
+ Vec trans(0.0, 0.0, -coef * delta);
+ translate(inverseTransformOf(trans));
+ }
^ 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: Fix 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