koffice/krita/plugins/paintops/defaultpaintops/duplicate
Boudewijn Rempt
boud at valdyas.org
Wed Oct 29 09:59:04 CET 2008
SVN commit 877342 by rempt:
The duplicate op works now (at least in the simple cases, Cyrille could
you please check whether it also works correctly when healing and correcting
perspective?)
CCMAIL: kimageshop at kde.org
M +1 -6 kis_duplicateop.cpp
M +1 -1 kis_duplicateop_settings.cpp
--- trunk/koffice/krita/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop.cpp #877341:877342
@@ -108,6 +108,7 @@
void KisDuplicateOp::paintAt(const KisPaintInformation& info)
{
if (!painter()) return;
+
if (!m_duplicateStartIsSet) {
m_duplicateStartIsSet = true;
m_duplicateStart = info.pos();
@@ -264,12 +265,6 @@
delete [] matrix;
}
-
- // Add the dab as selection to the srcdev
-// KisPainter copySelection(srcdev->selection().data());
-// copySelection.bitBlt(0, 0, COMPOSITE_OVER, dab, 0, 0, sw, sh);
-// copySelection.end();
-
brush->mask(m_srcdev, scale, scale, 0.0, info, xFraction, yFraction);
QRect dabRect = QRect(0, 0, brush->maskWidth(scale, 0.0), brush->maskHeight(scale, 0.0));
--- trunk/koffice/krita/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_settings.cpp #877341:877342
@@ -53,7 +53,7 @@
bool KisDuplicateOpSettings::paintIncremental()
{
- return false;
+ return true;
}
More information about the kimageshop
mailing list