Bug 134894 - Chart's title unexpectedly remains even if we uncheck the checkbox
Summary: Chart's title unexpectedly remains even if we uncheck the checkbox
Status: RESOLVED DUPLICATE of bug 126837
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-17 06:38 UTC by himajin100000
Modified: 2020-07-17 09:44 UTC (History)
0 users

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 himajin100000 2020-07-17 06:38:45 UTC
Description:
see steps to reproduce

Steps to Reproduce:
1. Launch Calc
2. Create whatever data is used for the chart, and select the range.
2. [Insert]->[Chart] from Main menu.
3. [Finish] in the Chart Wizard.
4. Open [Properties] sidebar for the chart.
5. For comparison, uncheck [Elements]-[Legend]-[Show legend].
6. the legend disappears.
7. Check [Elements]-[Titles]-[Title].
8. Title with the text "Title" appears
9. Uncheck [Elements]-[Titles]-[Title]. 

Actual Results:
Title still remains.

Expected Results:
Title disappears.


Reproducible: Always


User Profile Reset: No



Additional Info:
maybe we need something similar to VLegend::isVisible thingy for VTitle?

https://opengrok.libreoffice.org/xref/core/chart2/source/view/main/ChartView.cxx?r=02c4b116#2251

https://opengrok.libreoffice.org/xref/core/chart2/source/view/main/ChartView.cxx?r=02c4b116#2107
---
note: lcl_createTitle and lcl_createLegend are called only from create2D variants. 
https://opengrok.libreoffice.org/s?refs=lcl_createTitle&project=core

note: for Titles, "Visible" property is set, not "Show" property
https://opengrok.libreoffice.org/xref/core/chart2/source/controller/sidebar/ChartElementsPanel.cxx?r=e871c9cb#146

====================
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 28f09062b2e9a3228ef5fe41312769ad566cc4b6
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: ja-JP (ja_JP); UI: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2020-07-17 09:44:33 UTC

*** This bug has been marked as a duplicate of bug 126837 ***