summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 15b7561)
raw | patch | inline | side by side (parent: 15b7561)
author | ulferikson <ulferikson@users.sourceforge.net> | |
Mon, 2 Mar 2009 15:00:45 +0000 (15:00 +0000) | ||
committer | ulferikson <ulferikson@users.sourceforge.net> | |
Mon, 2 Mar 2009 15:00:45 +0000 (15:00 +0000) |
src/extension/internal/emf-win32-print.cpp | patch | blob | history |
diff --git a/src/extension/internal/emf-win32-print.cpp b/src/extension/internal/emf-win32-print.cpp
index f69186c71343485565727da9333bcccc6ee94b02..d098f6466ab95ba25ddabb62deb3e0523f2d5208 100644 (file)
/* Authors:
* Ulf Erikson <ulferikson@users.sf.net>
*
- * Copyright (C) 2006-2008 Authors
+ * Copyright (C) 2006-2009 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
@@ -674,7 +674,6 @@ PrintEmfWin32::print_simple_shape(Geom::PathVector const &pathv, const Geom::Mat
bool done = false;
bool closed = (lpPoints[0].x == lpPoints[i-1].x) && (lpPoints[0].y == lpPoints[i-1].y);
bool polygon = false;
- bool polyline = false;
bool rectangle = false;
bool ellipse = false;
@@ -688,9 +687,6 @@ PrintEmfWin32::print_simple_shape(Geom::PathVector const &pathv, const Geom::Mat
}
}
}
- else if (moves == 1 && moves+lines == nodes) {
- polyline = true;
- }
else if (moves == 1 && nodes == 5 && moves+curves == nodes && closed) {
if (lpPoints[0].x == lpPoints[1].x && lpPoints[1].x == lpPoints[11].x &&
lpPoints[5].x == lpPoints[6].x && lpPoints[6].x == lpPoints[7].x &&
@@ -703,7 +699,7 @@ PrintEmfWin32::print_simple_shape(Geom::PathVector const &pathv, const Geom::Mat
}
}
- if (polygon || polyline || ellipse) {
+ if (polygon || ellipse) {
HPEN hpenTmp = NULL;
HPEN hpenOld = NULL;
HBRUSH hbrushTmp = NULL;
@@ -726,9 +722,6 @@ PrintEmfWin32::print_simple_shape(Geom::PathVector const &pathv, const Geom::Mat
else
Polygon( hdc, lpPoints, nodes );
}
- else if (polyline) {
- Polyline( hdc, lpPoints, nodes );
- }
else if (ellipse) {
Ellipse( hdc, lpPoints[6].x, lpPoints[3].y, lpPoints[0].x, lpPoints[9].y);
}