Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
FPC
Lazarus
Lazarus
Commits
3162d8bf
Commit
3162d8bf
authored
Mar 26, 2015
by
Željan Rikalo
🏊🏼
Browse files
Qt: fixed index out of bounds when setting item text. issue
#27740
git-svn-id: trunk@48509 -
parent
31adc59c
Changes
1
Hide whitespace changes
Inline
Side-by-side
lcl/interfaces/qt/qtwscomctrls.pp
View file @
3162d8bf
...
...
@@ -1547,7 +1547,9 @@ begin
AAlignment
:=
AlignmentToQtAlignmentMap
[
ALV
.
Column
[
ASubIndex
].
Alignment
]
or
QtAlignVCenter
;
QtTreeWidget
.
setItemText
(
TWI
,
ASubIndex
,
Str
,
AAlignment
);
{issue #27696 for autosized columns we must provide sizehint}
if
ALV
.
Column
[
ASubIndex
].
AutoSize
then
if
(
TCustomListViewHack
(
ALV
).
Columns
.
Count
>
0
)
and
(
ASubIndex
>=
0
)
and
(
ASubIndex
<
TCustomListViewHack
(
ALV
).
Columns
.
Count
)
and
ALV
.
Column
[
ASubIndex
].
AutoSize
then
begin
if
Assigned
(
TCustomListViewHack
(
ALV
).
SmallImages
)
then
AIconWidth
:=
TCustomListViewHack
(
ALV
).
SmallImages
.
Width
...
...
FPC Admin account
@fpc_admin
mentioned in issue
#27740 (closed)
·
Jul 29, 2021
mentioned in issue
#27740 (closed)
mentioned in issue #27740
Toggle commit list
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