From bf7957818bd78134edc9fa6ecd1320324bdd7f5d Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 4 Nov 2014 20:21:06 -0500 Subject: [PATCH] 2014-11-04 Fred Gleason * Fixed a bug in 'rdlogedit/drop_listview.cpp' that caused a segfault when dropping a cart on the log list. --- ChangeLog | 3 +++ rdlogedit/drop_listview.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1d3646fa..6c7af752 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14640,3 +14640,6 @@ 2014-11-04 Fred Gleason * Updated 'NEWS'. * Incremented the package version to 2.10.1. +2014-11-04 Fred Gleason + * Fixed a bug in 'rdlogedit/drop_listview.cpp' that caused a + segfault when dropping a cart on the log list. diff --git a/rdlogedit/drop_listview.cpp b/rdlogedit/drop_listview.cpp index d14bb3ee..68f41dcc 100644 --- a/rdlogedit/drop_listview.cpp +++ b/rdlogedit/drop_listview.cpp @@ -49,7 +49,7 @@ void DropListView::dropEvent(QDropEvent *e) if(RDCartDrag::decode(e,&ll)) { RDListViewItem *item=(RDListViewItem *)itemAt(pos); if(item!=NULL) { - line=item->text(13).toInt(); + line=item->text(14).toInt(); } emit cartDropped(line,&ll); }