diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:51:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:51:28 +0000 |
commit | 940b4d1848e8c70ab7642901a68594e8016caffc (patch) | |
tree | eb72f344ee6c3d9b80a7ecc079ea79e9fba8676d /external/libetonyek/glm-force-dmat3-initialization-needed-from-v0.9.9.0.patch.1 | |
parent | Initial commit. (diff) | |
download | libreoffice-940b4d1848e8c70ab7642901a68594e8016caffc.tar.xz libreoffice-940b4d1848e8c70ab7642901a68594e8016caffc.zip |
Adding upstream version 1:7.0.4.upstream/1%7.0.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'external/libetonyek/glm-force-dmat3-initialization-needed-from-v0.9.9.0.patch.1')
-rw-r--r-- | external/libetonyek/glm-force-dmat3-initialization-needed-from-v0.9.9.0.patch.1 | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/external/libetonyek/glm-force-dmat3-initialization-needed-from-v0.9.9.0.patch.1 b/external/libetonyek/glm-force-dmat3-initialization-needed-from-v0.9.9.0.patch.1 new file mode 100644 index 000000000..1add51828 --- /dev/null +++ b/external/libetonyek/glm-force-dmat3-initialization-needed-from-v0.9.9.0.patch.1 @@ -0,0 +1,62 @@ +From 548c2735c09570726f08d5ae9fee8efefb54d529 Mon Sep 17 00:00:00 2001 +From: osnola <alonso@loria.fr> +Date: Sun, 31 Mar 2019 09:34:11 +0200 +Subject: [PATCH] glm: force dmat3 initialization (needed from v0.9.9.0) + +Change-Id: I2cb285f2d9bc1e9818ed946b38caaf8a5de9e61a +Reviewed-on: https://gerrit.libreoffice.org/69993 +Reviewed-by: Laurent Alonso(fr) <alonso.laurent@gmail.com> +Tested-by: Laurent Alonso(fr) <alonso.laurent@gmail.com> +--- + src/lib/IWORKCollector.cpp | 6 +++--- + src/lib/KEYCollector.cpp | 3 +-- + 2 files changed, 4 insertions(+), 5 deletions(-) + +diff --git a/src/lib/IWORKCollector.cpp b/src/lib/IWORKCollector.cpp +index 41a9c79..794b462 100644 +--- a/src/lib/IWORKCollector.cpp ++++ b/src/lib/IWORKCollector.cpp +@@ -183,8 +183,8 @@ private: + IWORKCollector::Level::Level() + : m_geometry() + , m_graphicStyle() +- , m_trafo() +- , m_previousTrafo() ++ , m_trafo(1) ++ , m_previousTrafo(1) + { + } + +@@ -601,7 +601,7 @@ void IWORKCollector::startLevel() + return; + } + +- glm::dmat3 currentTrafo, prevTrafo; ++ glm::dmat3 currentTrafo(1), prevTrafo(1); + if (!m_levelStack.empty()) + { + currentTrafo = m_levelStack.top().m_trafo; +diff --git a/src/lib/KEYCollector.cpp b/src/lib/KEYCollector.cpp +index a9d8cc3..08e7e69 100644 +--- a/src/lib/KEYCollector.cpp ++++ b/src/lib/KEYCollector.cpp +@@ -167,7 +167,7 @@ void KEYCollector::insertTextPlaceholder(const KEYPlaceholderPtr_t &placeholder) + { + if (bool(placeholder)) + { +- glm::dmat3 trafo; ++ glm::dmat3 trafo(1); + if (bool(placeholder->m_geometry)) + trafo = makeTransformation(*placeholder->m_geometry); + trafo *= m_levelStack.top().m_trafo; +@@ -417,7 +417,6 @@ void KEYCollector::drawTextBox(const IWORKTextPtr_t &text, const glm::dmat3 &tra + double w = boundingBox->m_naturalSize.m_width; + double h = boundingBox->m_naturalSize.m_height; + vec = trafo * glm::dvec3(w, h, 0); +- + if (vec[0]>0) + props.insert("svg:width", pt2in(vec[0])); + if (vec[1]>0) +-- +2.24.1 + |