Bug 93292 - Hide/Show display toggling icon not displayed correctly in Math
Summary: Hide/Show display toggling icon not displayed correctly in Math
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: Other All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Sidebar
  Show dependency treegraph
 
Reported: 2015-08-09 07:33 UTC by grofaty
Modified: 2024-12-11 06:00 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
hide_and_show_display-toggling_button (136.12 KB, image/png)
2015-08-09 07:33 UTC, grofaty
Details
Arrow_problems_in_Math-6_2_8_2 (121.55 KB, image/png)
2019-12-03 16:07 UTC, grofaty
Details
arrow_colour (171.91 KB, image/png)
2023-12-04 05:34 UTC, grofaty
Details
Wrong icon on the Hide/Show button (156.46 KB, image/png)
2024-08-17 16:43 UTC, nutka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description grofaty 2015-08-09 07:33:54 UTC
Created attachment 117779 [details]
hide_and_show_display-toggling_button

In LibreOffice 5.0.0.5 on Ubuntu 14.04 installed from PPA: http://ppa.launchpad.net/libreoffice/ppa/ubuntu

Accroding to LibreOffice 5.0 Release notes on https://wiki.documentfoundation.org/ReleaseNotes/5.0#General_UI_changes (slide down to third option) new display-toggling Hide/Show icon was added.
In Calc/Writer click on Hide icon and you will notice correct Show icon.
In Math click on Hide display-toggling icon and Show icon is incorrect.

See attachment.

P.S. Don't know maybe this is Ubuntu specific UI problem.
Comment 1 Adolfo Jayme Barrientos 2015-08-09 11:50:29 UTC
NEW
Comment 2 QA Administrators 2016-09-20 10:21:01 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2019-12-03 14:43:55 UTC Comment hidden (obsolete)
Comment 4 grofaty 2019-12-03 16:07:20 UTC
Created attachment 156273 [details]
Arrow_problems_in_Math-6_2_8_2

I have rechecked and the problem still persists like it was 4 years ago.

I tested on:
====================
Version: 6.2.8.2
Build ID: 1:6.2.8~rc2-0ubuntu0.16.04.1
CPU threads: 2; OS: Linux 4.15; UI render: default; VCL: gtk2; 
Locale: sl-SI (en_US.UTF-8); UI-Language: en-US
Calc: threaded
====================

on Ubuntu 16.04. I can't test on never LibreOffice version, because I am using 32-bit laptop and LibreOffice never then 6.2 is not supported on 32-bit hardware.
Comment 5 QA Administrators 2021-12-03 04:39:17 UTC Comment hidden (obsolete)
Comment 6 grofaty 2021-12-03 12:22:06 UTC
I have retested the problem and problem is the same like 6 years ago when I have reported it.

Currently I am using LibreOffice 7.2.3 from snap package on Ubuntu 20.04.

Help | About:

Version: 7.2.3.2 / LibreOffice Community
Build ID: a49ed84f3d037188bbbcb324f9afc3796d887539
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: sl-SI (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 7 QA Administrators 2023-12-04 03:17:09 UTC Comment hidden (obsolete)
Comment 8 grofaty 2023-12-04 05:34:22 UTC
Created attachment 191206 [details]
arrow_colour
Comment 9 grofaty 2023-12-04 05:36:45 UTC
I have rechecked the problem in latest stable version on Ubuntu 22.10 and the problem is the same like it was 8 years ago when I first reported an issue.

In my previous post I have attached an image to make it simpler to reproduce a problem.

Regards


==================================
Version: 7.6.3.2 (X86_64) / LibreOffice Community
Build ID: 29d686fea9f6705b262d369fede658f824154cc0
CPU threads: 2; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: sl-SI (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded
Comment 10 QA Administrators 2023-12-05 03:17:49 UTC Comment hidden (obsolete)
Comment 11 nutka 2024-08-17 16:42:29 UTC
Tested on Windows 7 & 11 with 24.2.5.2: 

- window docked at the top --> incorrect "Hide" arrow
- window docked at the bottom --> incorrect "Show" arrow

(cf. the attached file with screenshots taken in Draw, Development Tools window).



The source code,
file: /core/vcl/source/window/splitwin.cxx, ImplDrawGrip()

Line 1513 reads:

aPoly.SetPoint(Point(nCenter - nHeightHalf, nBottom - nMargin), 2);

Shouldn't that be (for a triangle):

aPoly.SetPoint(Point(nCenter + nHeightHalf, nBottom - nMargin), 2);


-----------

1464  void SplitWindow::ImplDrawGrip(vcl::RenderContext& rRenderContext, 
                                     const tools::Rectangle& rRect,
                                     bool bHorizontal, bool bLeft)
...
1503   tools::Polygon aPoly(3);
1504
1505   if (bHorizontal)
1506   {
1507       tools::Long nCenter = nLeft + nWidthHalf;
1508
1509       if (bLeft)
1510       {
1511           aPoly.SetPoint(Point(nCenter,               nTop    + nMargin), 0);
1512           aPoly.SetPoint(Point(nCenter - nHeightHalf, nBottom - nMargin), 1);
1513           aPoly.SetPoint(Point(nCenter - nHeightHalf, nBottom - nMargin), 2);
1514       }
1515       else
1516       {
1517           aPoly.SetPoint(Point(nCenter,               nBottom - nMargin), 0);
1518           aPoly.SetPoint(Point(nCenter - nHeightHalf, nTop    + nMargin), 1);
1519           aPoly.SetPoint(Point(nCenter + nHeightHalf, nTop    + nMargin), 2);
1520       }
1521       rRenderContext.DrawPolygon(aPoly);
1522   }
Comment 12 nutka 2024-08-17 16:43:43 UTC
Created attachment 195878 [details]
Wrong icon on the Hide/Show button