summaryrefslogtreecommitdiffstats
path: root/chalk/ui/kis_tool_freehand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/ui/kis_tool_freehand.cc')
-rw-r--r--chalk/ui/kis_tool_freehand.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chalk/ui/kis_tool_freehand.cc b/chalk/ui/kis_tool_freehand.cc
index bbe575d1..adbf9b8a 100644
--- a/chalk/ui/kis_tool_freehand.cc
+++ b/chalk/ui/kis_tool_freehand.cc
@@ -182,12 +182,12 @@ void KisToolFreehand::initPaint(KisEvent *)
// projection).
KisLayer* l = layer->layer();
KisPaintLayer* pl = dynamic_cast<KisPaintLayer*>(l);
- if (l->tqparent() && (l->tqparent()->tqparent() == 0)
- && (l->tqparent()->childCount() == 1)
- && l->tqparent()->paintLayerInducesProjectionOptimization(pl)) {
- // If there's a tqmask, device could've been the tqmask. The induce function
+ if (l->parent() && (l->parent()->parent() == 0)
+ && (l->parent()->childCount() == 1)
+ && l->parent()->paintLayerInducesProjectionOptimization(pl)) {
+ // If there's a mask, device could've been the mask. The induce function
// should catch this, but better safe than sorry
- l->tqparent()->resetProjection(pl->paintDevice());
+ l->parent()->resetProjection(pl->paintDevice());
}
m_target = new KisPaintDevice(m_currentImage->activeLayer(),