[Libreoffice-commits] libcdr.git: src/lib
Fridrich Å trba
fridrich.strba at bluewin.ch
Thu Jul 11 09:18:18 PDT 2013
src/lib/CDRContentCollector.cpp | 2 +-
src/lib/CDRPath.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit bd02faf784088b47c6aaabdc1bab2d5f7993a7da
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Thu Jul 11 18:17:53 2013 +0200
Some more trying to get the markers right-ish
diff --git a/src/lib/CDRContentCollector.cpp b/src/lib/CDRContentCollector.cpp
index e7722d5..af806ae 100644
--- a/src/lib/CDRContentCollector.cpp
+++ b/src/lib/CDRContentCollector.cpp
@@ -1054,7 +1054,7 @@ void libcdr::CDRContentCollector::_lineProperties(WPXPropertyList &propList)
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);
+ tmpTrafo = CDRTransform(-1.0, 0.0, 0.0, 0.0, -1.0, m_page.height);
endMarker.transform(tmpTrafo);
WPXString path, viewBox;
double width;
diff --git a/src/lib/CDRPath.cpp b/src/lib/CDRPath.cpp
index 6446096..9d529f1 100644
--- a/src/lib/CDRPath.cpp
+++ b/src/lib/CDRPath.cpp
@@ -777,7 +777,7 @@ void libcdr::CDRPath::writeOut(WPXString &path, WPXString &viewBox, double &widt
}
- width = qx - px;
+ width = qy - py;
viewBox.sprintf("%i %i %i %i", 0, 0, (unsigned)(2540*(qx - px)), (unsigned)(2540*(qy - py)));
for(unsigned i = 0; i < vec.count(); ++i)
More information about the Libreoffice-commits
mailing list