r19888 by fschmid - EMF Importer: more correct handling of linestyles.
scribus-commit
scribus-commit at lists.scribus.net
Sat Feb 28 09:18:36 UTC 2015
Author: fschmid
Date: Sat Feb 28 09:18:36 2015
New Revision: 19888
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19888
Log:
EMF Importer: more correct handling of linestyles.
Modified:
trunk/Scribus/scribus/plugins/import/emf/importemf.cpp
Modified: trunk/Scribus/scribus/plugins/import/emf/importemf.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19888&path=/trunk/Scribus/scribus/plugins/import/emf/importemf.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/emf/importemf.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/emf/importemf.cpp Sat Feb 28 09:18:36 2015
@@ -3099,12 +3099,7 @@
getPolyInfo(ds, BoxDev, countP);
FPointArray pointsPoly = getPolyPoints(ds, countP, size, fill);
if (fill)
- {
- if (currentDC.LineW == 0)
- z = m_Doc->itemAdd(PageItem::Polygon, PageItem::Unspecified, baseX, baseY, 10, 10, 0, currentDC.CurrColorFill, CommonStrings::None, true);
- else
- z = m_Doc->itemAdd(PageItem::Polygon, PageItem::Unspecified, baseX, baseY, 10, 10, currentDC.LineW, currentDC.CurrColorFill, currentDC.CurrColorStroke, true);
- }
+ z = m_Doc->itemAdd(PageItem::Polygon, PageItem::Unspecified, baseX, baseY, 10, 10, currentDC.LineW, currentDC.CurrColorFill, currentDC.CurrColorStroke, true);
else
z = m_Doc->itemAdd(PageItem::PolyLine, PageItem::Unspecified, baseX, baseY, 10, 10, currentDC.LineW, CommonStrings::None, currentDC.CurrColorStroke, true);
PageItem* ite = m_Doc->Items->at(z);
@@ -3157,12 +3152,7 @@
pointsPoly.setMarker();
}
if (fill)
- {
- if (currentDC.LineW == 0)
- z = m_Doc->itemAdd(PageItem::Polygon, PageItem::Unspecified, baseX, baseY, 10, 10, 0, currentDC.CurrColorFill, CommonStrings::None, true);
- else
- z = m_Doc->itemAdd(PageItem::Polygon, PageItem::Unspecified, baseX, baseY, 10, 10, currentDC.LineW, currentDC.CurrColorFill, currentDC.CurrColorStroke, true);
- }
+ z = m_Doc->itemAdd(PageItem::Polygon, PageItem::Unspecified, baseX, baseY, 10, 10, currentDC.LineW, currentDC.CurrColorFill, currentDC.CurrColorStroke, true);
else
z = m_Doc->itemAdd(PageItem::PolyLine, PageItem::Unspecified, baseX, baseY, 10, 10, currentDC.LineW, CommonStrings::None, currentDC.CurrColorStroke, true);
PageItem* ite = m_Doc->Items->at(z);
@@ -3188,9 +3178,12 @@
else if ((penStyle & 0x0F) == U_LS_DashDot)
sty.penStyle = Qt::DashDotLine;
else if ((penStyle & 0x0F) == U_LS_DashDotDot)
- sty.penStyle = Qt::DashDotDotLine;
- else if ((penStyle & 0x0F) == U_LS_Custom)
sty.penStyle = Qt::SolidLine;
+ else if ((penStyle & 0x0F) == 5)
+ {
+ sty.penStyle = Qt::SolidLine;
+ sty.penColor = CommonStrings::None;
+ }
else
sty.penStyle = Qt::SolidLine;
if ((penStyle & 0x0F00) == 0x100)
More information about the scribus-commit
mailing list