[Libreoffice-commits] libcdr.git: src/lib
Fridrich Å trba
fridrich.strba at bluewin.ch
Thu Aug 8 12:42:26 PDT 2013
src/lib/CDRContentCollector.cpp | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
New commits:
commit 0319fb78d19f2c13ad4fb3f90e4dcaedb4976412
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Thu Aug 8 21:41:58 2013 +0200
Some more transformations of markers (still a mess)
diff --git a/src/lib/CDRContentCollector.cpp b/src/lib/CDRContentCollector.cpp
index af806ae..aa55e23 100644
--- a/src/lib/CDRContentCollector.cpp
+++ b/src/lib/CDRContentCollector.cpp
@@ -161,7 +161,7 @@ void libcdr::CDRContentCollector::collectPath(const CDRPath &path)
void libcdr::CDRContentCollector::_flushCurrentPath()
{
- CDR_DEBUG_MSG(("CDRContentCollector::collectFlushPath\n"));
+ CDR_DEBUG_MSG(("CDRContentCollector::_flushCurrentPath\n"));
CDROutputElementList outputElement;
if (!m_currentPath.empty() || (!m_splineData.empty() && m_isInSpline))
{
@@ -1035,9 +1035,7 @@ void libcdr::CDRContentCollector::_lineProperties(WPXPropertyList &propList)
startMarker.transform(m_currentTransforms);
if (!m_groupTransforms.empty())
startMarker.transform(m_groupTransforms.top());
- CDRTransform tmpTrafo(1.0, 0.0, -m_page.offsetX, 0.0, 1.0, -m_page.offsetY);
- startMarker.transform(tmpTrafo);
- tmpTrafo = CDRTransform(1.0, 0.0, 0.0, 0.0, -1.0, m_page.height);
+ CDRTransform tmpTrafo = CDRTransform(1.0, 0.0, 0.0, 0.0, -1.0, 0);
startMarker.transform(tmpTrafo);
WPXString path, viewBox;
double width;
@@ -1052,9 +1050,7 @@ void libcdr::CDRContentCollector::_lineProperties(WPXPropertyList &propList)
endMarker.transform(m_currentTransforms);
if (!m_groupTransforms.empty())
endMarker.transform(m_groupTransforms.top());
- CDRTransform tmpTrafo(1.0, 0.0, -m_page.offsetX, 0.0, 1.0, -m_page.offsetY);
- endMarker.transform(tmpTrafo);
- tmpTrafo = CDRTransform(-1.0, 0.0, 0.0, 0.0, -1.0, m_page.height);
+ CDRTransform tmpTrafo = CDRTransform(-1.0, 0.0, 0.0, 0.0, -1.0, 0);
endMarker.transform(tmpTrafo);
WPXString path, viewBox;
double width;
More information about the Libreoffice-commits
mailing list