r21224 by fschmid -
scribus-commit
scribus-commit at lists.scribus.net
Sat Apr 23 08:18:59 UTC 2016
Author: fschmid
Date: Sat Apr 23 08:18:59 2016
New Revision: 21224
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21224
Log:
Fixed Bug #13796: Node Menu: 'Enlarge/Reduce the size of path by the shown value' artifacts
Modified:
trunk/Scribus/scribus/scribusview.cpp
trunk/Scribus/scribus/ui/nodeeditpalette.cpp
Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21224&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp (original)
+++ trunk/Scribus/scribus/scribusview.cpp Sat Apr 23 08:18:59 2016
@@ -1403,7 +1403,6 @@
void ScribusView::TransformPoly(int mode, int rot, double scaling)
{
PageItem *currItem = Doc->m_Selection->itemAt(0);
- QRectF oldR = currItem->getBoundingRect().adjusted(-5, -5, 10, 10);
currItem->ClipEdited = true;
QTransform ma;
undoManager->setUndoEnabled(false);
@@ -1479,7 +1478,7 @@
currItem->ContourLine.translate(qRound((tp.x() + tp2.x()) / 2.0), qRound((tp.y() + tp2.y()) / 2.0));
updateContents();
currItem->FrameOnly = true;
- updateContents(currItem->getRedrawBounding(m_canvas->scale()));
+ Doc->regionsChanged()->update(QRect());
undoManager->setUndoEnabled(true);
if (UndoManager::undoEnabled())
{
@@ -1582,10 +1581,8 @@
if (currItem->asPathText())
currItem->updatePolyClip();
Doc->setRedrawBounding(currItem);
- QRectF newR(currItem->getBoundingRect());
- Doc->regionsChanged()->update(newR.united(oldR));
+ Doc->regionsChanged()->update(QRect());
currItem->update();
-// MarkClip(currItem, currItem->PoLine, true);
currItem->FrameType = 3;
undoManager->setUndoEnabled(true);
if (UndoManager::undoEnabled())
Modified: trunk/Scribus/scribus/ui/nodeeditpalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21224&path=/trunk/Scribus/scribus/ui/nodeeditpalette.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/nodeeditpalette.cpp (original)
+++ trunk/Scribus/scribus/ui/nodeeditpalette.cpp Sat Apr 23 08:18:59 2016
@@ -553,7 +553,7 @@
//FIXME make an internal item copy poline to contourline member
currItem->ContourLine = currItem->PoLine.copy();
currItem->ClipEdited = true;
- m_view->DrawNew();
+ m_doc->regionsChanged()->update(QRectF());
emit DocChanged();
}
}
@@ -565,7 +565,7 @@
PageItem *currItem = m_doc->m_Selection->itemAt(0);
currItem->ContourLine = currItem->imageClip.copy();
currItem->ClipEdited = true;
- m_view->DrawNew();
+ m_doc->regionsChanged()->update(QRectF());
emit DocChanged();
}
}
@@ -941,6 +941,7 @@
m_doc->adjustItemSize(currItem);
if (currItem->itemType() == PageItem::PathText)
currItem->updatePolyClip();
+ m_doc->regionsChanged()->update(QRectF());
}
PolySplit->setEnabled(false);
BezierClose->setEnabled(false);
@@ -969,6 +970,7 @@
if (currItem->itemType() == PageItem::PathText)
currItem->updatePolyClip();
currItem->update();
+ m_doc->regionsChanged()->update(QRectF());
}
}
More information about the scribus-commit
mailing list