Summary: | Strange Behaviour wih Select All and adjustement layer | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Vsevolod Krishchenko <mstu> |
Component: | Filter Layers | Assignee: | Halla Rempt <halla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Sample with adj. layer |
Description
Vsevolod Krishchenko
2006-11-20 21:12:19 UTC
Created attachment 18630 [details]
Sample with adj. layer
I can confirm this with Krita 1.6.1 :-(. Thanks for the bug report! SVN commit 617918 by coppens: Strange that this didn't work, but the new way is more consistent and actually works. Also changed the previously mentioned clearSelection on the adjustment layers to something sensible: Select All -> apply adjustment everywhere, Deselect -> apply nowhere. BUG:137638 CCBUG:137708 M +1 -1 core/kis_adjustment_layer.cc M +9 -2 ui/kis_selection_manager.cc --- branches/koffice/1.6/koffice/krita/core/kis_adjustment_layer.cc #617917:617918 @@ -125,7 +125,7 @@ QRect bounds = extent(); bounds |= image()->bounds(); - gc.fillRect(bounds, KisColor(Qt::white, cs), MAX_SELECTED); + gc.fillRect(bounds, KisColor(Qt::white, cs), MIN_SELECTED); gc.end(); } --- branches/koffice/1.6/koffice/krita/ui/kis_selection_manager.cc #617917:617918 @@ -508,8 +508,15 @@ if (img->undo()) t = new KisSelectedTransaction(i18n("Select All"), dev); Q_CHECK_PTR(t); - dev->selection()->clear(); - dev->selection()->invert(); + // Make adjustment layers behave better + KisAdjustmentLayer* adj = dynamic_cast<KisAdjustmentLayer*>(img->activeLayer().data()); + if (adj) { + adj->clearSelection(); + adj->selection()->invert(); + } else { + dev->selection()->clear(); + dev->selection()->invert(); + } dev->setDirty(); dev->emitSelectionChanged(); |