Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
04840b0e
Commit
04840b0e
authored
May 19, 2010
by
con
Browse files
Fix text highlighting on Mac.
Broke with
8c9a9747
Reviewed-by: Thorbjørn Lindeijer
parent
b7b50eda
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/basetexteditor.cpp
View file @
04840b0e
...
...
@@ -2467,8 +2467,7 @@ void BaseTextEditor::paintEvent(QPaintEvent *e)
const
int
selStart
=
range
.
cursor
.
selectionStart
()
-
blpos
;
const
int
selEnd
=
range
.
cursor
.
selectionEnd
()
-
blpos
;
if
(
selStart
<=
bllen
&&
selEnd
>=
0
&&
selEnd
>=
selStart
&&
!
range
.
format
.
hasProperty
(
QTextFormat
::
FullWidthSelection
))
{
&&
selEnd
>=
selStart
)
{
QTextLayout
::
FormatRange
o
;
o
.
start
=
selStart
;
o
.
length
=
selEnd
-
selStart
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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