summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp')
-rw-r--r--plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp b/plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp
index ab5350ec86..d482099de3 100644
--- a/plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp
+++ b/plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp
@@ -689,7 +689,7 @@ void CLCDInput::UpdateOffsets(int iModified)
}
}
- iChar += iMaxChars;
+ //iChar += iMaxChars;
if(m_strText[iChar] == '\n' || sizeLine.cx > GetWidth())
{
@@ -755,11 +755,13 @@ void CLCDInput::UpdateOffsets(int iModified)
}
break;
}
+
+ iChar += iMaxChars;
}
// Update line's width
if(iMaxChars > 0)
{
- if(m_strText[iChar] == '\n' && iMaxChars >= 2)
+ if(m_strText[iChar-1] == '\n' && iMaxChars >= 2)
m_vLineOffsets[iLine].iWidth = piWidths[iMaxChars-2];
else
m_vLineOffsets[iLine].iWidth = piWidths[iMaxChars-1];