Bug 139566 - "Select All" type selection with a table in it is removed when switching between windows.
Summary: "Select All" type selection with a table in it is removed when switching betw...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Tamás Zolnai
URL:
Whiteboard: target:7.2.0 target:7.1.0.2
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-12 15:20 UTC by Tamás Zolnai
Modified: 2021-01-14 09:20 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Video capture showing the issue. (5.71 MB, video/webm)
2021-01-12 16:08 UTC, Tamás Zolnai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tamás Zolnai 2021-01-12 15:20:31 UTC
Description:
When I have a Writer in two Windows, with two different documents, I can switch between the two windows. In general, when I have a normal text selection (containing only text), the text selection is displayed correctly when switching between the two windows. However, if I have a table in my document and some text after the table, and I select all content with Select All (e.g. CTRL-A), then this selection is removed by switching views.

Steps to Reproduce:
See the video for actual steps.
1. Have two documents opened in two Writer window.
2. In the first document, do a select all, selecting a table and some text after the table.
3. Switch to the second window and back (move the focus, make the window active).

Actual Results:
Table + text selection is removed by switching active windows.

Expected Results:
Table + text selection should be unchanged similar to simple text selection.


Reproducible: Always


User Profile Reset: No



Additional Info:
.
Comment 1 Tamás Zolnai 2021-01-12 15:34:41 UTC
Can't attach a video capture :(
Comment 2 Tamás Zolnai 2021-01-12 16:08:58 UTC
Created attachment 168840 [details]
Video capture showing the issue.
Comment 3 mulla.tasanim 2021-01-12 16:27:16 UTC
Thank you for reporting the bug.

I can not reproduce the bug in

Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 761a672d62df1891b9f4f367a499b220ab2b33fa
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 4 Commit Notification 2021-01-13 05:12:49 UTC
Tamás Zolnai committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/68b1ae7b493eea4d77f36a0c8566ca0224f04798

tdf#139566: Fix select all (table + text) when document window looses focus.

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Commit Notification 2021-01-14 08:29:13 UTC
Tamás Zolnai committed a patch related to this issue.
It has been pushed to "libreoffice-7-1":

https://git.libreoffice.org/core/commit/d21b5b132976474338e57506fb04a2e9b294db9d

tdf#139566: Fix select all (table + text) when document window looses focus.

It will be available in 7.1.0.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 Commit Notification 2021-01-14 09:20:46 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/ce324c96132066a614d302ba07723026e5c6b83e

tdf#139566: sw_uiwriter3: Add unittest

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.