From 0bb008ece12fe4e261330a3f680e2f481bfd3e91 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 13 Mar 2014 14:53:37 +0000 Subject: warning fix git-svn-id: http://svn.miranda-ng.org/main/trunk@8593 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirandaG15/src/LCDFramework/CLCDLabel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/MirandaG15/src/LCDFramework/CLCDLabel.cpp') diff --git a/plugins/MirandaG15/src/LCDFramework/CLCDLabel.cpp b/plugins/MirandaG15/src/LCDFramework/CLCDLabel.cpp index 6451f76665..e2680a364f 100644 --- a/plugins/MirandaG15/src/LCDFramework/CLCDLabel.cpp +++ b/plugins/MirandaG15/src/LCDFramework/CLCDLabel.cpp @@ -173,7 +173,7 @@ void CLCDLabel::UpdateCutOffIndex() { // find the last space in the line ( substract -1 from offset to ignore spaces as last chars ) pos = m_strText.rfind(_T(" "),i + iMaxChars -1 ); - if(pos != tstring::npos && pos != i && pos >= i & pos != i+iMaxChars) + if(pos != tstring::npos && pos != i && pos >= i && pos != i+iMaxChars) iMaxChars = 1 + pos - i; } -- cgit v1.2.3