Status bar shows 'SVG selected' while the actual image based on PDF (so PDF selected)
Steps to Reproduce:
1. open attachment 134456 [details]
2. Click the PDF image (left) with white border
3. Status bar shows SVG while file being PDF
Status bar shows SVG
User Profile Reset: No
Version: 22.214.171.124.alpha0+ (x64)
Build ID: 94e6e140491de31c0788c91af855a75a3bb12709
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
In 6.4 it was "Image" but now we get "SVG", likely since this is the default in SdrGrafObj::TakeObjNameSingul(). And before I dig deeper it's better to ask Tomaz.
Yeah, SVG is default in the switch, as PDF isn't handled.
I would remove the default and handle all cases. If there is no default in the switch and we add a new entry into VectorGraphicDataType, then the compiler will complain with a warning and that's what we want in this case.
Heiko Tietze committed a patch related to this issue.
It has been pushed to "master":
Resolves tdf#137813 - Status bar info 'PDF selected'
It will be available in 7.1.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:
Affected users are encouraged to test the fix and report feedback.
Build ID: 9c8ed8c8526b9b696d0bf592eb7d963950f3cef4
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: x11
Locale: en-US (en_US.UTF-8); UI: en-US
@Heiko, thanks for fixing this issue!!