summaryrefslogtreecommitdiffstats
path: root/chalk/ui/kis_previewwidget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/ui/kis_previewwidget.cc')
-rw-r--r--chalk/ui/kis_previewwidget.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chalk/ui/kis_previewwidget.cc b/chalk/ui/kis_previewwidget.cc
index c9c2a766..c534384a 100644
--- a/chalk/ui/kis_previewwidget.cc
+++ b/chalk/ui/kis_previewwidget.cc
@@ -333,8 +333,8 @@ void KisPreviewWidget::runFilterHelper() {
if (m_origDevice->image())
{
m_scaledImage = new KisImage(*m_origDevice->image());
- if(!m_origDevice->tqparentLayer()) return;
- TQString layerName = m_origDevice->tqparentLayer()->name();
+ if(!m_origDevice->parentLayer()) return;
+ TQString layerName = m_origDevice->parentLayer()->name();
KisPaintLayerSP pl = ::tqqt_cast<KisPaintLayer*>(m_scaledImage->findLayer(layerName));
if(!pl) return;
scaledDevice = pl->paintDevice();
@@ -356,7 +356,7 @@ void KisPreviewWidget::runFilterHelper() {
0.0, 0.0, 0.0, 0, 0, NULL, &strategy);
tw.run();
scaledDevice->setSelection(select);
- select->setParentLayer(scaledDevice->tqparentLayer());
+ select->setParentLayer(scaledDevice->parentLayer());
}
// Crop by the zoom value instead of cropping by rectangle. It gives better results