Bug 46953 - EDITING: Impossible to drag and drop element to invisible layer
Summary: EDITING: Impossible to drag and drop element to invisible layer
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
Depends on:
Blocks: Layers
  Show dependency treegraph
 
Reported: 2012-03-04 04:06 UTC by vohe
Modified: 2023-09-15 09:23 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vohe 2012-03-04 04:06:29 UTC
Often i build drawings with Libreoffice.
I extensivly use the layers to struct them.

Since Version 3.4.xx i isn't possible to move drawed objects between a visible and a invisible layer.

The way i find this out is:

1. Open a new drawing
2. draw some figures (e.g. 100 rectangles) :-)
   now you have 100 rectangles on layer "Layout".
3. switch to another layer (no need to build it) we just use "Controls".
4. draw another rectangle in this layer
5. right-click on the layername and choose "Modify layer"
6. in the upcoming dialog deselect the option visible (so layer  Controls is invisible)
7. switch back to layer Layout
8. mark one (or may be more) rectangles and press and hold the left mousekey to move them. Now press and hold the ctrl-key too. 
9. try to move the figures to the layer Controls. 
   (you'll see that is impossible)
but it is possible to move them to the Layer "Dimensions Lines".

Since many versions of Openoffice/Libreoffice it's possible to move figures to invisible layers. Who ever changed this feature, never used it!
Comment 1 Rainer Bielefeld Retired 2012-03-04 22:16:46 UTC
Reproducible

You can modify layer of an element (like a rectangle) as following
a) click element with selected "Layout" layer where object is drawn
   > control points become visible
b) press <control> key and hold
c) click element again (still <control>) and leave left mouse button pushed
d) move mouse pointer a little
   > mouse pointer view changes, a little "+" in a rectangle becomes visible 
     below the normal mouse pointer
e) move on mouse pointer to an other layer tab ('Controls')
   > layer tab now shows selected
   > layer of element has changed, you can see that by making invisible new 
     layer tab

To test that I created new DRAWings with additional layer4 (visible) and layer5 (invisible) and did steps a...e for a rectangle each for moving from layer "Layout" to "layer4" and "layer5".

My results (all WIN7 64bit) with a new drawing created from (LibO / OOo) Start Center:
OOo 3.1.1: Can move to visible layer4, but not to invisible layer5.
           Mouse pointer view changes to "forbidden" when it is above Tab
           for an invisible layer, changes back when you move it back 
           above a Tab for a visible layer
LibO 3.3.0: Like OOo 3.1.1
LibO 3.4.5: Like OOo 3.1.1
LibO 3.5.1 RC1: Like OOo 3.1.1

So may be I can confirm reporter's observation that it's impossible to change layer that way to an invisible layer, but not the regression, because it never has been possible.

I can't understand reasons for that limitation. With <control+x> / <control+x> you can transfer an element to an invisible layer without problems

@vohe:
With what version (EXACT) did you do the drag and drop successfully?

"Controls" is not "a" layer, but  very special one. Can you confirm your observations with a new layer?

May be, instead of drawing 99 useless rectangles you can try to find out your Operating System? ;-)
Comment 2 Rainer Bielefeld Retired 2012-03-15 03:11:23 UTC
NEW due to Comment 1
Comment 3 QA Administrators 2014-10-24 03:18:25 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2015-12-20 16:16:01 UTC Comment hidden (obsolete)
Comment 5 Heiko Tietze 2016-05-04 09:16:12 UTC
Not sure about the use case of being able to draw within hidden layers. But it adds an aspect to layer management. Clarification is needed.
Comment 6 QA Administrators 2017-09-01 11:18:33 UTC Comment hidden (obsolete)
Comment 7 Regina Henschel 2017-09-01 15:02:45 UTC
The problem still exists in Version: 6.0.0.0.alpha0+
Build ID: 4c99b8a9de59f3c5280ff2944d9f828822897f4a
CPU threads: 4; OS: Windows 6.1; UI render: default; 
Locale: de-DE (de_DE); Calc: group
Comment 8 QA Administrators 2018-09-02 02:49:59 UTC Comment hidden (obsolete)
Comment 9 Regina Henschel 2018-09-02 16:58:02 UTC
The problem still exists in Version: 6.2.0.0.alpha0+ (x64)
Build-ID: a201c5c8c3e7ea14001b5634f330dbce2b1f4314
CPU-Threads: 8; BS: Windows 10.0; UI-Render: GL; 
Gebietsschema: en-US (en_US); Calc: CL
Comment 10 Regina Henschel 2018-09-02 21:19:50 UTC
The reason is in View::AcceptDrop in https://opengrok.libreoffice.org/xref/core/sd/source/ui/view/sdview2.cxx#446

Part
 && pPV->IsLayerVisible( aLayerName ) 
has to be deleted.

But I have not tested, whether this has any side effects.
Comment 11 Regina Henschel 2018-09-02 21:21:27 UTC
Perhaps an "easyHack"?
Comment 12 QA Administrators 2019-09-03 16:11:43 UTC Comment hidden (obsolete)
Comment 13 QA Administrators 2021-09-03 04:03:19 UTC Comment hidden (obsolete)
Comment 14 Stéphane Guillou (stragu) 2023-03-22 09:04:54 UTC
Reproduced in:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 64d1a735b2b371495bfd56faf7070fb3274533ad
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Like in comment 1, I can see it inherited as OOo 3.3 has the same limitation.

Hossein, what do you think of Regina's comment 10?
Comment 15 dapgo 2023-08-28 08:45:14 UTC
Issue is still on 7.5.2.3
Any technical workaround?

regarding a real solution
What about an alternative approach to drag and drop?
Maybe adding the layer to the shape-organize submenu?
Creating a side view for layers?
Comment 16 dapgo 2023-08-28 09:43:12 UTC
I've realize that sometimes and using CRTL or shift key I am able to drap and drop on the target layer. I dunno the exact pattern as Crtl key makes a copy of selection but sometimes when dragging i got a different cursor icon.
Comment 17 Stéphane Guillou (stragu) 2023-08-28 10:18:28 UTC
(In reply to dapgo from comment #15)
> Issue is still on 7.5.2.3
> Any technical workaround?
> 
> regarding a real solution
> What about an alternative approach to drag and drop?
> Maybe adding the layer to the shape-organize submenu?
> Creating a side view for layers?

dapgo, please always try to reproduce with the latest release.
Also, please don't change the Hardware fields to your personal ones, as the issue has already been confirmed for various hardware and OS. I'm setting those back to "all".

An alternative to drag-and-drop is requested in bug 122587.
I guess a currently functional workaround is cutting, changing layer, pasting.
Comment 18 dapgo 2023-09-15 09:22:39 UTC
(In reply to Stéphane Guillou (stragu) from comment #17)
> (In reply to dapgo from comment #15)
> > Issue is still on 7.5.2.3
> > Any technical workaround?
> > 
> > regarding a real solution
> > What about an alternative approach to drag and drop?
> > Maybe adding the layer to the shape-organize submenu?
> > Creating a side view for layers?
> 
> dapgo, please always try to reproduce with the latest release.
> Also, please don't change the Hardware fields to your personal ones, as the
> issue has already been confirmed for various hardware and OS. I'm setting
> those back to "all".
> 
> An alternative to drag-and-drop is requested in bug 122587.
> I guess a currently functional workaround is cutting, changing layer,
> pasting.

Thanks Stéphane, i changed hardware by mistake.
Yes the cut and paste between layers work, but i suppose that many users will not expect this feature if they see that drag and drop seem to not exist.