Bug 82436 - EDITING: Tab stops not retained when indent set in paragraph dialog
Summary: EDITING: Tab stops not retained when indent set in paragraph dialog
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Hossein
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paragraph-Dialog Tab-Stops Paragraph-Indent
  Show dependency treegraph
 
Reported: 2014-08-10 23:57 UTC by Yousuf Philips (jay) (retired)
Modified: 2023-10-13 14:39 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
tabs in the rules (9.62 KB, image/png)
2014-08-14 16:17 UTC, sophie
Details
screencast (648.17 KB, video/webm)
2014-11-14 21:42 UTC, Yousuf Philips (jay) (retired)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2014-08-10 23:57:14 UTC
Steps:
1) Open Writer
2) right-click > Paragraph
3) in indents tab, set indent before text to 1cm
4) in tabs tab, add tab positions for 3cm and 5cm
5) press OK button
6) it will only add one tab position at 6cm

Tested in 3.3.0, 4.3.2 and master.
Comment 1 sophie 2014-08-14 16:17:42 UTC
Created attachment 104626 [details]
tabs in the rules

I can't confirm, see the screenshot, the two tabulations are present. I'm using 4.3.0.4 Ubuntu 14.04 - Sophie
Comment 2 Buovjaga 2014-11-12 10:00:30 UTC
Unable to reproduce.

Win 7 64-bit Version: 4.4.0.0.alpha2+
Build ID: b021b5983c62e266b82d9f0c5c6d8d8900553827
TinderBox: Win-x86@42, Branch:master, Time: 2014-11-12_00:19:18

Ubuntu 14.10 64-bit Version: 4.4.0.0.alpha2+
Build ID: 1c526c9ddda5d52f7a4db5655a4ec60b8c62835c
TinderBox: Linux-rpm_deb-x86_64@46-TDF-dbg, Branch:master, Time: 2014-11-11_23:20:41
Comment 3 A (Andy) 2014-11-13 22:35:23 UTC
I have the same as Sophie. 

For me not reproducible with LO 4.3.3.2, Win 8.1.
Comment 4 lapont 2014-11-14 21:28:41 UTC
I can confirm the behavior as described by Jay Philips.
I have made some additional observations:

Steps:
1) Open Writer
2) Set tab stop at 5cm (click in top ruler or format paragraph)
3) Press <tab> and write som text at position 5 cm
4) Format->Page->Borders. Select at least left border 
   and set left distance to content to 2.5 cm
5) press OK button
6) the text at position 5 cm (tab stop) has moved 2.5 cm to the right
7) move cursor to beginning of a new line. Pressing <tab> moves cursor to 
   position 7.5 cm and not to the shown tab stop at position 5 cm

Kubuntu 14.04
LO 4.2.7.2
Comment 5 Yousuf Philips (jay) (retired) 2014-11-14 21:42:35 UTC
Created attachment 109490 [details]
screencast
Comment 6 A (Andy) 2014-11-14 22:09:52 UTC
Jay, thanks for the screencast!  This is by far the best way to show how it can be reproduced.

And now I know why it was for me not reproducible, because I made an additional interim stage.  After Step 3 with the indent tab I closed the dialogue to see it and only then I made Step 4.  Sorry, you did not write it, so it was my fault, because with this interim stage it is not reproducible.  But if I do it as you without closing it in an interim stage then it is also reproducible for me with LO 4.3.3.2, Win 8.1.
Comment 7 Gordo 2015-06-24 18:47:12 UTC
When the Paragraph dialogue is opened, if it is already on the Indents & Spacing tab then both tabs will be created.  If, on the other hand, the Paragraph dialogue opens on another tab that requires switching to the Indents & Spacing tab then only the one tab will be created.

Windows Vista 64
Version: 4.4.4.2
Build ID: f784c932ccfd756d01b70b6bb5e09ff62e1b3285

Version: 5.1.0.0.alpha1+
Build ID: 2885e157674dbefa7d9b984a399fabd1238eeedd
TinderBox: Win-x86@39, Branch:master, Time: 2015-06-22_07:52:27
Comment 8 QA Administrators 2016-09-20 10:10:11 UTC Comment hidden (obsolete)
Comment 9 Martin Sourada 2019-03-21 06:42:30 UTC
The bug is still present in:
Version: 6.2.1.2
Build ID: 7bcb35dc3024a62dea0caee87020152d1ee96e71
CPU threads: 2; OS: Linux 4.20; UI render: default; VCL: gtk3; 
Locale: en-US (C); UI-Language: en-US
Calc: threaded

The behaviour seems to be dependent on negative First Line Indent and is misbehaving in both direct formatting and styles and as well as when the indent is set indirectly by numbering style.

While testing I also encountered two other bugs, which I'll sumbit/find when I'll have some more time.

Here is a couple of different test cases that I was able to reproduce it with:

Variant A (direct formating)
============================
1. Create new doc in LO Writer
2. Enter Fromat > Paragraph > Indents & Spacing
3. Set Indent > Before text: 1 cm (seems non-essential)
4. Set Indent > First line: -1 cm
5. Enter Tabs
6. Add two tab stops: 2 cm and 4 cm (both with type left)
7. Press OK

Result: The first tab stop is missing

Variant B (direct formating & numbering style)
==============================================
1. Create new doc in LO Writer
2. Enter Fromat > Paragraph > Outline & Numbering
3. Set Numbering > Numbering style: List 1
4. Enter Tabs
5. Add two tab stops: 2 cm and 4 cm (both with type left)
6. Press OK

Result: The first tab stop is missing

Variant C (using paragraph styles)
==================================
1. Create new doc in LO Writer
2. Modify current paragraph style (should be Default Style)
3. Enter Indents & Spacing
4. Set Indent > Before text: 1 cm (seems non-essential)
5. Set Indent > First line: -1 cm
6. Press Apply (essential step)
7. Enter Tabs
8. Add two tab stops: 2 cm and 4 cm (both with type left)
9. Press Apply (essential step)
10. Press OK

Result: The first tab stop is missing

Variant D (using paragaph styles & numbering styles)
====================================================
1. Create new doc in LO Writer
2. Modify current paragraph style (should be Default Style)
3. Outline & Numbering
4. Set Numbering > Numbering style: List 1
5. Press Apply (seems non-essential)
6. Enter Tabs
7. Add two tab stops: 2 cm and 4 cm (both with type left)
8. Press Apply (seems non-essential)
9. Press OK

Result: The first tab stop is missing

Variant E (using paragraph styles)
==================================
1. Apply paragraph style with negative First Line Indent (e.g. List 1)
2. Edit the paragraph style
3. Enter Tabs
4. Add two tab stops: 2 cm and 4 cm (both with type left)
5. Press Apply (essential step)
6. Press OK

Result: The first tab stop is missing
Comment 10 QA Administrators 2021-03-21 04:17:48 UTC Comment hidden (obsolete)
Comment 11 Martin Sourada 2021-03-21 09:25:42 UTC
This bug is still present in:

Version: 7.1.1.2 / LibreOffice Community
Build ID: fe0b08f4af1bacafe4c7ecc87ce55bb426164676
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: cs-CZ
Calc: threaded

I Was able to reproduce variants B, D and E from comment 9.
Comment 12 Telesto 2022-01-01 18:17:28 UTC
Still present
Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 1bb0e177124d5d6661b72df6c7d848fb23639652
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 13 Telesto 2022-01-01 18:20:58 UTC
@Heiko
Does this maybe qualify as an easy hack. The problem occurs when configuring indent + tabs at the same time. If you configure the indent first (and close the dialog) and separately the tab stop every thing appears to be OK
Comment 14 Heiko Tietze 2022-04-11 12:27:40 UTC
(In reply to Telesto from comment #13)
> Does this maybe qualify as an easy hack.

Forwarding the question to Hossein.
Comment 15 Hossein 2023-10-13 14:39:00 UTC
(In reply to Heiko Tietze from comment #14)
> (In reply to Telesto from comment #13)
> > Does this maybe qualify as an easy hack.
> 
> Forwarding the question to Hossein.
I think it is better to fix this bug sooner, and not define it as an EasyHack, because it may further delay the fix. I am assigning it to myself now.