Blob Blame Raw
From 28fbbe52fb98bc1e6add434670b5fcd359c357c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Wojni=C5=82owicz?=
 <lukasz.wojnilowicz@gmail.com>
Date: Sat, 18 Jun 2016 19:14:05 +0200
Subject: [PATCH 09/22] Set start line to one during CSV import

Initial value of m_startLine should always be greater than zero. Shall
user have start line greater than one, it will be set by appropriate
slot.
---
 kmymoney/plugins/csvimport/investprocessing.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kmymoney/plugins/csvimport/investprocessing.cpp b/kmymoney/plugins/csvimport/investprocessing.cpp
index 34e53c8..7562c73 100644
--- a/kmymoney/plugins/csvimport/investprocessing.cpp
+++ b/kmymoney/plugins/csvimport/investprocessing.cpp
@@ -104,7 +104,7 @@ InvestProcessing::InvestProcessing()
   m_detailColumn = -1;
   m_endLine = 0;
   m_fileEndLine = 0;
-  m_startLine = 0;
+  m_startLine = 1;
   m_topLine = 0;
   m_row = 0;
   m_endColumn = 0;
@@ -2038,7 +2038,7 @@ void InvestProcessing::readSettings()
     m_csvDialog->m_wiz->m_pageInvestment->ui->comboBoxInv_securityName->setCurrentIndex(tmp);
 
     tmp = m_startLine;
-    m_startLine = profilesGroup.readEntry("StartLine", -1) + 1;
+    m_startLine = profilesGroup.readEntry("StartLine", 0) + 1;
     if (m_startLine > m_endLine) {
       m_startLine = tmp;
     }
-- 
2.7.4