[Korganizer-devel] [Bug 262310] Crash when selecting a single day after scrolling the week view [EventViews::EventIndicator::enableColumn EventViews::AgendaView::updateEventIndicatorTop EventViews::Agenda::lowerYChanged checkScrollBoundaries]
Sergio Martins
iamsergio at gmail.com
Thu Jan 6 15:46:16 CET 2011
https://bugs.kde.org/show_bug.cgi?id=262310
--- Comment #2 from Sergio Martins <iamsergio gmail com> 2011-01-06 15:46:16 ---
commit 2416d7fb1d5856bd7571075698f841f81ef4fd6d
branch master
Author: Sergio Martins <iamsergio at gmail.com>
Date: Thu Jan 6 14:42:30 2011 +0000
Add an assert.
Qt already asserts, but this makes the backtrace nicer to read.
CCBUG: 262310
diff --git a/calendarviews/eventviews/agenda/agendaview.cpp
b/calendarviews/eventviews/agenda/agendaview.cpp
index 29135b8..ceb3544 100644
--- a/calendarviews/eventviews/agenda/agendaview.cpp
+++ b/calendarviews/eventviews/agenda/agendaview.cpp
@@ -160,6 +160,7 @@ void EventIndicator::changeColumns( int columns )
void EventIndicator::enableColumn( int column, bool enable )
{
+ Q_ASSERT( column < d->mEnabled.count() );
d->mEnabled[ column ] = enable;
}
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Korganizer-devel
mailing list