From a71c3045665a60e86b622e1d3e1a70da14a7c915 Mon Sep 17 00:00:00 2001 From: Katsuhisa Yuasa Date: Fri, 24 Apr 2020 04:15:28 +0900 Subject: [PATCH] =?UTF-8?q?=E6=8A=98=E3=82=8A=E8=BF=94=E3=81=97=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=9F=E9=9A=9B=E3=80=81=E6=96=87=E5=AD=97=E6=95=B0?= =?UTF-8?q?=E3=82=AB=E3=82=A6=E3=83=B3=E3=83=88=E3=81=8C=E5=90=88=E3=82=8F?= =?UTF-8?q?=E3=81=AA=E3=81=84=E4=B8=8D=E5=85=B7=E5=90=88=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sakura_core/view/CViewSelect.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sakura_core/view/CViewSelect.cpp b/sakura_core/view/CViewSelect.cpp index 14aa0408cf..fec12084cf 100644 --- a/sakura_core/view/CViewSelect.cpp +++ b/sakura_core/view/CViewSelect.cpp @@ -784,7 +784,8 @@ void CViewSelect::PrintSelectionInfoMsg() const pcLayout = pView->m_pcEditDoc->m_cLayoutMgr.SearchLineByLayoutY( nLineNum ); for( ; nLineNum < nLineTo && pcLayout; ++nLineNum ){ // 2006.06.06 ryoji 指定行のデータが存在しない場合の対策 - select_sum += pcLayout->GetLengthWithEOL() - 1 + pcLayout->GetLayoutEol().GetLen(); + CLogicInt eolLen = pcLayout->GetLayoutEol().GetLen(); + select_sum += pcLayout->GetLengthWithEOL() - (eolLen ? 1 : 0) + eolLen; pcLayout = pcLayout->GetNextLayout(); }