Ticket #55067: patch-kateviewhelpers.diff

File patch-kateviewhelpers.diff, 657 bytes (added by NicosPavlov, 7 years ago)
  • part/view/kateviewhelpers.cpp

    old new  
    17031703      if (realLine > -1) {
    17041704        if (m_viewInternal->cache()->viewLine(z).startCol() == 0) {
    17051705          if (m_viRelLineNumbersOn && m_view->viInputMode()) {
    1706             int diff = abs(realLine - currentLine);
     1706            int diff = abs(realLine - (int)currentLine);
    17071707            if (diff > 0) {
    17081708              p.drawText( lnX + m_maxCharWidth / 2, y, lnWidth - m_maxCharWidth, h,
    17091709                          Qt::TextDontClip|Qt::AlignRight|Qt::AlignVCenter, QString("%1").arg(diff) );