After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 598523 - Protect hidden layers from editing
Protect hidden layers from editing
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.6.1
Other All
: Normal normal
: 2.10
Assigned To: GIMP Bugs
GIMP Bugs
: 695398 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-10-15 09:27 UTC by david
Modified: 2013-05-13 21:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix bug 598523 (3.26 KB, patch)
2013-04-23 19:43 UTC, darkraid1
none Details | Review
Patch to fix bug 598523 (2.96 KB, patch)
2013-04-24 14:29 UTC, darkraid1
committed Details | Review

Description david 2009-10-15 09:27:13 UTC
You can now edit hidden layers although you wont see what you've done, like drawing a brush stroke over the whole layer.
This may be in error and you are not aware of whats been done. When you turn on visibility layer and find out, it may be too late, you've already done a lot of work to other layers so it would mean more work to undo.

I can't think of any situation where one would like to edit an invisible layer so I would like non visible layers to be protected from editing.
Comment 1 Bruno 2011-04-06 11:28:33 UTC
I do.
I sometimes edit layer A according to visual guides in layer B, such as A would hinder said guides if visible. I don't want to have to move layers around or tinker their blend mode just to do that.

That said, I often find myself editing a hidden layer by mistake.

What we need here is... sorry, dunno.
Comment 2 strata_ranger 2012-05-27 23:07:13 UTC
What we need here is a user-selectable option, since acting upon a hidden layer is often a mistake, but there may be situations where it is desired.

If we compare a different app, Inkscape, it will not let you perform certain operations if the target is a hidden layer; if you try, the statusbar will merely tell you "Current layer is hidden; unable to draw or act upon it".
Comment 3 Michael Schumacher 2013-03-07 20:41:33 UTC
*** Bug 695398 has been marked as a duplicate of this bug. ***
Comment 4 Michael Natterer 2013-03-07 20:54:43 UTC
This is trivial to implement, the very same way we protect
locked layers and group layers from being edited. A nice core
patch for a new contributor.
Comment 5 darkraid1 2013-04-23 19:43:23 UTC
Created attachment 242288 [details] [review]
Patch to fix bug 598523

I got a working patch here. It is my first patch, so please don't be too mad (or something)
Comment 6 Michael Natterer 2013-04-23 22:17:09 UTC
That's a good start, can you please fix the formatting and spacing,
which means mostly no tabs and spaces before each '('.
Comment 7 darkraid1 2013-04-24 14:29:04 UTC
Created attachment 242329 [details] [review]
Patch to fix bug 598523

Updated.
Comment 8 Michael Natterer 2013-05-13 21:32:30 UTC
Thanks, fixed in master. Lest treat all missing things as separate bugs,
I think the ones we have now are the most obvious with little potential
for discussion.

commit ac5428787e238282fdbf1359ebfd4445cb0fcec8
Author: darkraid1 <darkraid1@gmail.com>
Date:   Wed Apr 24 16:27:12 2013 +0200

    Bug 598523 - Protect hidden layers from editing
    
    Don't allow tool operations on invisible items, just like we do for
    group layers or locked items.
    
    Cleaned up and enhanced the patch a bit --Mitch

 app/tools/gimpblendtool.c      |   10 +++++++++-
 app/tools/gimpbucketfilltool.c |   10 +++++++++-
 app/tools/gimpimagemaptool.c   |    7 +++++++
 app/tools/gimppainttool.c      |   10 +++++++++-
 app/tools/gimptransformtool.c  |   12 ++++++++++--
 5 files changed, 44 insertions(+), 5 deletions(-)