Bug 158299

Summary: Chart labels misplaced depending on zoom level
Product: LibreOffice Reporter: Stéphane Guillou (stragu) <stephane.guillou>
Component: Android ViewerAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: m.weghorn
Priority: medium    
Version: 7.6.3.1 rc   
Hardware: ARM   
OS: Android   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=157295
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 107923, 108542    
Attachments: sample chart in ODS
screenshot based on sample ODS

Description Stéphane Guillou (stragu) 2023-11-21 14:25:38 UTC
Created attachment 190938 [details]
sample chart in ODS

Steps:
1. Open a file with a chart, like attachment
2. Zoom in and out

Result: chart labels move independently from the chart

Version: 7.6.3.2.0+
Build ID: 0e982fe4db35
Comment 1 Stéphane Guillou (stragu) 2023-11-21 14:34:13 UTC
Created attachment 190939 [details]
screenshot based on sample ODS
Comment 2 Michael Weghorn 2023-11-21 16:42:31 UTC
Thanks. I can reproduce with

    Version: 7.6.3.2.0+
    Build ID: 0e982fe4db35

but not

    Version: 24.2.0.0.alpha0+
    Build ID: 42edec63fba4

Fix identified by bibisecting with gtktiledviewer:

commit cf17d5384cc8e254684bc1423176ad8562d49bee
Author: Pranam Lashkari
Date:   Mon Jun 26 22:28:06 2023 +0700

    vcl: render scaled fonts for LOK
    
    problem:
    In  online calc when fonts are not scaled, text box disappears when not active
    
    Change-Id: I9c8fdb3c0d14a3e7ed502ddb2b46c0769a855280
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153624
    Reviewed-by: Caolán McNamara
    Tested-by: Caolán McNamara
    (cherry picked from commit 6460c685c3bc3f4929263c7681080056b59948fe)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153654
    Tested-by: Jenkins
    Reviewed-by: Pranam Lashkari

Now pending cherry-pick for 7-6: 
https://gerrit.libreoffice.org/c/core/+/159752

The Gerrit change for master has this comment from Caolán, which may or may not apply for the bug here as well:

> yeah, this is a workaround for one of my bugs which I should get around to fixing properly, e.g. https://bugs.documentfoundation.org/show_bug.cgi?id=157295