Commit 7d82d370 authored by Jouni Pentikäinen's avatar Jouni Pentikäinen

Fix the order of assistant and reference image decorations

BUG: 395867
parent 7d8849fb
......@@ -68,13 +68,13 @@ void KisDecorationsManager::setView(QPointer<KisView> imageView)
m_imageView = imageView;
if (m_imageView && !assistantsDecoration()) {
KisPaintingAssistantsDecoration *deco = new KisPaintingAssistantsDecoration(m_imageView);
if (m_imageView && !referenceImagesDecoration()) {
KisReferenceImagesDecoration *deco = new KisReferenceImagesDecoration(m_imageView, imageView->document());
m_imageView->canvasBase()->addDecoration(deco);
}
if (m_imageView && !referenceImagesDecoration()) {
KisReferenceImagesDecoration *deco = new KisReferenceImagesDecoration(m_imageView, imageView->document());
if (m_imageView && !assistantsDecoration()) {
KisPaintingAssistantsDecoration *deco = new KisPaintingAssistantsDecoration(m_imageView);
m_imageView->canvasBase()->addDecoration(deco);
}
......
......@@ -247,12 +247,12 @@ KisView::KisView(KisDocument *document, KoCanvasResourceManager *resourceManager
connect(d->document, SIGNAL(sigLoadingFinished()), this, SLOT(slotLoadingFinished()));
connect(d->document, SIGNAL(sigSavingFinished()), this, SLOT(slotSavingFinished()));
d->canvas.addDecoration(d->paintingAssistantsDecoration);
d->paintingAssistantsDecoration->setVisible(true);
d->canvas.addDecoration(d->referenceImagesDecoration);
d->referenceImagesDecoration->setVisible(true);
d->canvas.addDecoration(d->paintingAssistantsDecoration);
d->paintingAssistantsDecoration->setVisible(true);
d->showFloatingMessage = cfg.showCanvasMessages();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment