kate: fix gcc7 build
This commit is contained in:
parent
5742ada585
commit
1ade84f13c
1 changed files with 11 additions and 0 deletions
11
srcpkgs/kate/patches/gcc7-fix-abs.patch
Normal file
11
srcpkgs/kate/patches/gcc7-fix-abs.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- 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) );
|
Loading…
Reference in a new issue