| Summary: | "Screenshot of Selection": White space with fractional scaling | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | madness742 |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 25.04.3 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/ktexteditor/-/commit/a8304647e3b76abf8be28308a01574e5caef4780 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | Showcase of the bug. | ||
|
Description
madness742
2025-07-11 12:25:41 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/822 Git commit a8304647e3b76abf8be28308a01574e5caef4780 by Waqar Ahmed. Committed on 14/07/2025 at 19:27. Pushed by cullmann into branch 'master'. Properly center the screenshot pixmap Otherwise we have to do weird hacks because the pixmap occupies the full width. Use the m_screenshot->geometry() to get the grab rectangle. QWidget::geometry() returns the correct dpr divided geometry which is needed when calling QWidget::grab() as it scales the given rectangle's size by dpr again. M +7 -10 src/view/screenshotdialog.cpp https://invent.kde.org/frameworks/ktexteditor/-/commit/a8304647e3b76abf8be28308a01574e5caef4780 |