Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Gwenview
Commits
6aba8e56
Commit
6aba8e56
authored
Feb 14, 2022
by
Laurent Montel
😁
Browse files
Fix Bug 445434: Gwenview crash when clicking "crop" button
BUG: 445434
parent
2272b304
Pipeline
#137132
passed with stage
in 4 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/crop/cropwidget.cpp
View file @
6aba8e56
...
...
@@ -191,7 +191,10 @@ struct CropWidgetPrivate : public QWidget {
mCurrentImageComboBoxIndex
=
ratioComboBox
->
count
()
-
1
;
// We need to refer to this ratio later
addRatioToComboBox
(
QSizeF
(
1
,
1
),
i18n
(
"Square"
));
addRatioToComboBox
(
ratio
(
QGuiApplication
::
screenAt
(
QCursor
::
pos
())
->
geometry
().
size
()),
i18n
(
"This Screen"
));
const
QScreen
*
screen
=
QGuiApplication
::
screenAt
(
QCursor
::
pos
());
if
(
screen
)
{
addRatioToComboBox
(
ratio
(
screen
->
geometry
().
size
()),
i18n
(
"This Screen"
));
}
addSectionHeaderToComboBox
(
i18n
(
"Landscape"
));
for
(
const
QSizeF
&
size
:
qAsConst
(
ratioList
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment