Bug 113130 - Not possible to draw on top of selected object (moves object instead)
Summary: Not possible to draw on top of selected object (moves object instead)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL: https://ask.libreoffice.org/t/draw-sh...
Whiteboard:
Keywords:
Depends on:
Blocks: Object-Selection-Alignment Shapes
  Show dependency treegraph
 
Reported: 2017-10-15 07:56 UTC by Ljiljan
Modified: 2023-11-16 09:19 UTC (History)
3 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 Ljiljan 2017-10-15 07:56:00 UTC
When you select tool from drawing toolbars, while another object on a slide is selected, drawing over a selected object is not possible. 

Steps to reproduce:

1. Draw a rectangle
2. Selected this rectangle
3. Select line tool from drawing toolbar
4. Try to draw line connecting edges of rectangle 

Current behavior:

Impress offers to move currently selected object even though drawing tool was previously selected from toolbar

Expected behavior:
Impress should draw object no matter if there is active selection on slide, but only IF drawing tool was previously selected from toolbar
Comment 1 Mohamed 2017-10-17 08:48:00 UTC
I think this can be considered as an enhancement. If the object is selected, when you point on one of element edges the cursor will move or resize it, depends on your position. But if you want to connect the objects border to an other kind of element like line you should deselect it first then select the drawing tool you want and use it after.

Testing environment:
    • Operating system : Windows 8.1 Pro 64-bits.
    • LibreOffice : Version: 5.4.2.2
		Build ID: 22b09f6418e8c2d508a9eaf86b2399209b0990f4
		CPU threads: 4; OS: Windows 6.2; UI render: default; 
		Locale: en-US (en_US); Calc: group

     And also on :
    • Operating system : Ubuntu 16.04.3 64-bits.
    • LibreOffice :Version: 5.4.2.2
		Build ID: 22b09f6418e8c2d508a9eaf86b2399209b0990f4
		CPU threads: 8; OS: Linux 4.4; UI render: default; VCL: gtk2; 
		Locale: ja-JP (ja_JP.UTF-8); Calc: group
Comment 2 Ljiljan 2017-10-17 20:12:33 UTC
But if you have some object (like a rectangle) and zoom in in order to draw something (and forgot to click somewhere else)... then you select line tool or another object tool... you just cannot draw over it because the previous object is selected.
Comment 3 Xisco Faulí 2017-10-18 09:08:07 UTC
I guess the object should be deselected once we click to draw another object.
Confirmed back to

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 4 QA Administrators 2018-10-19 02:51:06 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2021-04-01 03:53:31 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2023-04-02 03:24:07 UTC Comment hidden (obsolete)
Comment 7 Stéphane Guillou (stragu) 2023-11-16 09:10:46 UTC
Reproduced in Draw and Writer too, drawing a shape or text box over images, text boxes and shapes, in recent trunk build:

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

This is problematic for e.g. annotating over images, as reported in this post: https://graz.social/@publicvoit/111397901465154681
See also on Ask.LO:
* https://ask.libreoffice.org/t/draw-shape-e-g-rectangle-on-top-of-say-pasted-image/49709
* https://ask.libreoffice.org/t/drawing-on-an-image/29078

(In reply to Xisco Faulí from comment #3)
> I guess the object should be deselected once we click to draw another object.
Agreed that this is the straight-forward solution. The newly drawn object would be selected anyway once finished, so no need to keep the selection once a shape button is pressed.

(Corner case to check though: the Text Box command adds a text box to the selected object / enters in edit mode. So whoever fixes this should make sure this still works as expected.)