|
|
|
@ -195,9 +195,9 @@ int KPrPenStyleWidget::getPenConfigChange() const
|
|
|
|
|
int flags = 0;
|
|
|
|
|
|
|
|
|
|
if ( getLineEnd() != m_pen.lineEnd )
|
|
|
|
|
flags = flags | KoPenCmd::LineEnd;
|
|
|
|
|
flags = flags | KoPenCmd::EndLine;
|
|
|
|
|
if ( getLineBegin() != m_pen.lineBegin )
|
|
|
|
|
flags = flags | KoPenCmd::LineBegin;
|
|
|
|
|
flags = flags | KoPenCmd::BeginLine;
|
|
|
|
|
if ( getKPPen().color() != m_pen.pen.color() )
|
|
|
|
|
flags = flags | KoPenCmd::Color;
|
|
|
|
|
if ( getKPPen().style() != m_pen.pen.style() )
|
|
|
|
@ -227,10 +227,10 @@ void KPrPenStyleWidget::apply()
|
|
|
|
|
{
|
|
|
|
|
int flags = getPenConfigChange();
|
|
|
|
|
|
|
|
|
|
if ( flags & KoPenCmd::LineEnd )
|
|
|
|
|
if ( flags & KoPenCmd::EndLine )
|
|
|
|
|
m_pen.lineEnd = getLineEnd();
|
|
|
|
|
|
|
|
|
|
if ( flags & KoPenCmd::LineBegin )
|
|
|
|
|
if ( flags & KoPenCmd::BeginLine )
|
|
|
|
|
m_pen.lineBegin = getLineBegin();
|
|
|
|
|
|
|
|
|
|
if ( flags & KoPenCmd::Color )
|
|
|
|
|