Skip to content

[webcanvas] add specified file extension when call "Save as" dialog#21935

Merged
linev merged 3 commits intoroot-project:masterfrom
linev:webcanv_saveas_fix
Apr 17, 2026
Merged

[webcanvas] add specified file extension when call "Save as" dialog#21935
linev merged 3 commits intoroot-project:masterfrom
linev:webcanv_saveas_fix

Conversation

@linev
Copy link
Copy Markdown
Member

@linev linev commented Apr 16, 2026

When press "Ok" button, check if typed file name has specified extension.
If not - add it in any case.

Also fix problem in JSROOT when file have multiple extensions like "file.a.png".
JSROOT was using `filename.indexOf(".") to detect file extension.
Plus few other fixes.

Fixes #21933

linev added 2 commits April 16, 2026 15:43
Appending missing extension when typed file name does not contain file extension
1. Correctly draw axis ticks when `fNdivisions` is negative
2. Fix - properly detect file format when store canvas image
Copy link
Copy Markdown
Member

@bellenot bellenot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 16, 2026

Test Results

    22 files      22 suites   3d 3h 25m 3s ⏱️
 3 833 tests  3 832 ✅  1 💤 0 ❌
75 653 runs  75 635 ✅ 18 💤 0 ❌

Results for commit 659b9b4.

♻️ This comment has been updated with latest results.

Now negative fNdiv handled properly,
therefore output changed a bit
@linev linev requested a review from dpiparo as a code owner April 17, 2026 05:24
@linev linev merged commit 6f3eb5a into root-project:master Apr 17, 2026
29 of 30 checks passed
@linev linev deleted the webcanv_saveas_fix branch April 17, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web canvas saves files in the wrong format if extension is not specified

2 participants