12 lines
654 B
Diff
12 lines
654 B
Diff
--- part/view/kateviewhelpers.cpp 2014-10-26 21:17:55.000000000 +0100
|
|
+++ part/view/kateviewhelpers.cpp 2017-07-10 14:33:46.722050893 +0200
|
|
@@ -1703,7 +1703,7 @@
|
|
if (realLine > -1) {
|
|
if (m_viewInternal->cache()->viewLine(z).startCol() == 0) {
|
|
if (m_viRelLineNumbersOn && m_view->viInputMode()) {
|
|
- int diff = abs(realLine - currentLine);
|
|
+ int diff = abs((int)(realLine - currentLine));
|
|
if (diff > 0) {
|
|
p.drawText( lnX + m_maxCharWidth / 2, y, lnWidth - m_maxCharWidth, h,
|
|
Qt::TextDontClip|Qt::AlignRight|Qt::AlignVCenter, QString("%1").arg(diff) );
|