From 261ed21b6c91fcf366d5ae6e96c1e363bd3d0210 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 Feb 2019 22:08:56 +0300 Subject: fixes #1834 (HistoryStats Crashes Miranda on report creation) --- plugins/HistoryStats/src/column_events.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/HistoryStats/src/column_events.cpp b/plugins/HistoryStats/src/column_events.cpp index b1ac0e0f0c..e51d79d1e8 100644 --- a/plugins/HistoryStats/src/column_events.cpp +++ b/plugins/HistoryStats/src/column_events.cpp @@ -6,7 +6,7 @@ */ ColEvents::ColEvents() - : m_nSource(5), m_hSource(nullptr) + : m_nSource(2), m_hSource(nullptr) { } @@ -19,7 +19,7 @@ void ColEvents::impl_copyConfig(const Column* pSource) void ColEvents::impl_configRead(const SettingsTree& settings) { - m_nSource = settings.readIntRanged(con::KeySource, 5, 0, 5); + m_nSource = settings.readIntRanged(con::KeySource, 2, 0, 2); } void ColEvents::impl_configWrite(SettingsTree& settings) const @@ -70,7 +70,7 @@ void ColEvents::impl_outputRenderHeader(ext::ostream& tos, int row, int rowSpan) void ColEvents::impl_outputRenderRow(ext::ostream& tos, const Contact& contact, DisplayType) { - static int (Contact::*getData[6])() const = { + static int (Contact::*getData[3])() const = { &Contact::getInFiles, &Contact::getOutFiles, &Contact::getTotalFiles, -- cgit v1.2.3