Skip to content

G'MIC: Try to activate the newest added layer

This PR makes the G'MIC command activate the topmost layer on execution.

@dkazakov: this tries to activate the newest added layer on G'MIC execution, as it's done with normal UI actions. I followed the existing Document::setActiveNode flow in libkis, but it doesn't work; nor I could find an alternative. Perhaps you can point the way on review?

BUG: 453478

Test Plan

Build Krita, call G'MIC and execute "Channels to Layers". Make sure the selected node is the first input layer.

Formalities Checklist

  • I confirmed this builds.
  • I confirmed Krita ran and the relevant functions work.
  • I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!)
  • I made sure my commits build individually and have good descriptions as per KDE guidelines.
  • I made sure my code conforms to the standards set in the HACKING file.
  • I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.
Edited by Amy spark

Merge request reports