[ wxwindows-Patches-1821550 ] Fix for listctrl sort crash with zero
items
SourceForge.net
noreply at sourceforge.net
Thu Nov 1 13:41:12 PDT 2007
Patches item #1821550, was opened at 2007-10-28 11:40
Message generated for change (Comment added) made by vadz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1821550&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Simon Munton (nomis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix for listctrl sort crash with zero items
Initial Comment:
Calling SortItems on a list control that has no items causes a segmentation fault, due to HighlightAll calling HighlightLines with the lineTo argument set to -1.
This patch only calls HighlightLines if the list is not empty.
See also bug 1814788
----------------------------------------------------------------------
Comment By: Vadim Zeitlin (vadz)
Date: 2007-11-01 21:41
Message:
Logged In: YES
user_id=71618
Originator: NO
Thank you for your patch, it has been applied to both svn trunk and 2.8
branch!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1821550&group_id=9863
More information about the wx-dev
mailing list