Bug 38011 - [UI] Object with no left spacing gives wrong behavior when exit
Summary: [UI] Object with no left spacing gives wrong behavior when exit
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Object-Selection-Alignment
  Show dependency treegraph
 
Reported: 2011-06-06 14:12 UTC by Laurent Balland
Modified: 2023-10-12 15:45 UTC (History)
1 user (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 Laurent Balland 2011-06-06 14:12:12 UTC
Hello,

To reproduce:
- create new text document
- type some text (there is no problem if object sticks the left margin, with left or justified alignment)
- Insert > Object > Formula
- type a formula
- Escape, Escape
=> If you let default Formula style, with left spacing of 2mm, your cursor is AFTER the formula, and you can continue typing easily. :)
- modify Formula wrapping with no left spacing:
  - right click on formula > Object
  - Tab: Wrap; Spacing, Left = 0; OK
- double click to open the formula
- exit the formula with twice Escape
=> cursor is BEFORE the formula, so you need to move the cursor to continue typing. :(

An easy workaround is to decrease left spacing down to 0.1mm to get the right behavior (cursor after).

I do not like to have extra spacing of my formulas inside text, but I like typing twice Escape to continue typing.
The problem is the same with an OLE object (anchor as character).
The problem is very old (OOo 1.1.5).
No problem with right spacing.
Tested on WinXP.
Comment 1 Björn Michaelsen 2011-12-23 12:22:20 UTC Comment hidden (obsolete)
Comment 2 Laurent Balland 2011-12-26 23:46:45 UTC
Hello,

I can reproduce the bug with LibO 3.5b2
Comment 3 A (Andy) 2013-05-01 07:04:22 UTC
reproducible with LO 4.0.2.2 (Win7 Home, 64bit)

Note: It is important that you insert the formula directly after a typed text.  If you insert any text and make a line break and insert the formula into a new empty line, then it is there not reproducible.
Comment 4 A (Andy) 2013-05-01 07:12:47 UTC
I tested it further and recognized, that the last two steps: 
"- double click to open the formula
- exit the formula with twice Escape"
are not necessary to reproduce it.

This behavior happens right after changing the left spacing.  After changing the spacing and pressing OK, press once the Escape key and the cursor will be before the formula if there is any text in this line before the formula.
Comment 5 QA Administrators 2015-03-04 02:22:58 UTC Comment hidden (obsolete)
Comment 6 Laurent Balland 2015-03-04 09:43:29 UTC
Reproduce on Win7 with:
- Version: 4.3.6.2
Build ID: d50a87b2e514536ed401c18000dad4660b6a169e
- Version: 4.4.1.2
Build ID: 45e2de17089c24a1fa810c8f975a7171ba4cd432
Locale : fr_FR
- Version: 4.5.0.0.alpha0+
Build ID: 24a89b277208d8f3fa7987f5fe76a02286bbff25
TinderBox: Win-x86@42, Branch:master, Time: 2015-03-03_07:55:00
Locale: fr_FR
Comment 7 tommy27 2016-04-16 07:23:49 UTC Comment hidden (obsolete)
Comment 8 Laurent Balland 2016-04-16 12:09:06 UTC
Confirmed with:
- Version: 5.1.2.2 (x64)
Build ID: d3bf12ecb743fc0d20e0be0c58ca359301eb705f
Threads CPU : 4; Version de l'OS :Windows 6.1; UI Render : par défaut; 
Locale : fr-FR (fr_FR)

- Version: 5.2.0.0.alpha0+ (x64)
Build ID: 042f16a19e3d5f884759dae71264433b988df0e6
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86_64@62-TDF, Branch:MASTER, Time: 2016-03-16_10:03:38
Locale: fr-FR (fr_FR)
Comment 9 QA Administrators 2017-05-22 13:24:03 UTC Comment hidden (obsolete)
Comment 10 Laurent Balland 2017-05-22 20:20:04 UTC
Confirmed with:
- Version: 5.3.2.2 (x64)
Build ID: 6cd4f1ef626f15116896b1d8e1398b56da0d0ee1
Threads CPU : 4; Version de l'OS :Windows 6.1; UI Render : par défaut; Moteur de mise en page : nouveau; 
Locale : fr-FR (fr_FR); Calc: group

- Version: 5.4.0.0.alpha1+
Build ID: d33e262a244f351febc9dbe605b05f76cb834eeb
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-05-08_00:26:09
Locale: fr-FR (fr_FR); Calc: CL
Comment 11 QA Administrators 2018-05-23 02:37:03 UTC Comment hidden (obsolete)
Comment 12 Laurent Balland 2018-05-23 14:07:27 UTC
Confirmed with Version: 6.0.4.2 (x64)
Build ID: 9b0d9b32d5dcda91d2f1a96dc04c645c450872bf
Threads CPU : 2; OS : Windows 6.1; UI Render : par défaut; 
Locale : fr-FR (fr_FR); Calc: CL
Comment 13 QA Administrators 2019-09-30 02:51:44 UTC Comment hidden (obsolete)
Comment 14 QA Administrators 2021-09-30 04:02:18 UTC Comment hidden (obsolete)
Comment 15 Laurent Balland 2021-09-30 08:06:21 UTC
Confirmed with 
- Version: 7.1.6.2 (x64) / LibreOffice Community
Build ID: 0e133318fcee89abacd6a7d077e292f1145735c3
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
- Version: 7.2.2.1 (x64) / LibreOffice Community
Build ID: 0e408af0b27894d652a87aa5f21fe17bf058124c
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
- Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: ebc454ad4eb1f4cd4d84a7db367bb71a457c4e5c
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
Comment 16 QA Administrators 2023-10-01 03:17:35 UTC Comment hidden (obsolete)
Comment 17 Laurent Balland 2023-10-12 15:45:29 UTC
Confirmed with Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL threaded