Bug 128419 - In Find and Replace, 'Replace backwards' gets toggled back off or back on by the buttons 'Find All', 'Find Previous', etc.
Summary: In Find and Replace, 'Replace backwards' gets toggled back off or back on by ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.2.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Find&Replace-Dialog
  Show dependency treegraph
 
Reported: 2019-10-27 18:10 UTC by Alex
Modified: 2025-07-25 23:58 UTC (History)
2 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 Alex 2019-10-27 18:10:30 UTC
Description:
In the Find and Replace dialogue, the option 'Replace backwards' doesn't always keep its status (on or off) as set by the user.
See examples below as steps to reproduce. It looks like an issue with the setting of a global variable/flag...


Steps to Reproduce:
First example:
1. Open Find and replace (Ctrl + H)
2. Fill in the fields for Find:... and Replace:...
3. Check the option 'Replace backwards'
4. Click 'Find All' --> 'Replace backwards' gets unchecked
Second example:
1. Open Find and replace (Ctrl + H)
2. Fill in the fields for Find:... and Replace:...
3. Click 'Find Next'
4. Check the option 'Replace backwards'
5. Click 'Find Previous' --> 'Replace backwards' gets unchecked
Third example:

1. Open Find and replace (Ctrl + H)
2. Fill in the fields for Find:... and Replace:...
3. Check the option 'Replace backwards'
4. Click 'Replace'
5. Uncheck 'Replace backwards'
5. Click 'Find Previous' or 'Find Next' --> 'Replace backwards' gets checked again

Actual Results:
'Replace backwards' gets checked or unchecked by other actions than the manual toggling from the user.

Expected Results:
'Replace backwards' should stay checked/unchecked when not toggled directly by the user.


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: TextDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes
[LibreOffice install]
Version: 6.3.2.2
Build ID: 1:6.3.2-0ubuntu0.18.04.1~lo1
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Calc: threaded
Comment 1 Julien Nabet 2019-10-28 08:34:44 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.

Heiko/Xisco: I also think the checkbox shouldn't be changed automatically, any thoughts?
Also, when I use key id locale, when open Find/Replace dialog, I got a key only for Paragraph Styles. Should I submit a new bugtracker about this?
Comment 2 QA Administrators 2022-09-22 03:55:04 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2024-09-22 03:19:12 UTC Comment hidden (obsolete)
Comment 4 Don 2025-07-25 23:58:53 UTC
I can reproduce this in version 24.2.2.2 as follows:
1. Open Find and replace
2. Select Find field
3. Check the option "Replace backwards"
4. Set a search attribute, such as "Blinking" to search for.
5. Press Find, Find Next, etc.
6. "Replace backwards" gets unchecked after a few seconds.