diff options
author | Johannes Huber <johu@gentoo.org> | 2017-02-20 17:58:07 +0100 |
---|---|---|
committer | Johannes Huber <johu@gentoo.org> | 2017-02-20 18:01:56 +0100 |
commit | e9eb31c83ef0d9340a1942f613f7809384dd95cd (patch) | |
tree | b22a400779fee6760a49a2b24255fb9cbff9c7f0 /kde-misc/plasma-emergelog/files/plasma-emergelog-0.0.2-list.patch | |
parent | kde-misc/plasma-applet-daisy: Remove last-rited pkg (diff) | |
download | gentoo-e9eb31c83ef0d9340a1942f613f7809384dd95cd.tar.gz gentoo-e9eb31c83ef0d9340a1942f613f7809384dd95cd.tar.bz2 gentoo-e9eb31c83ef0d9340a1942f613f7809384dd95cd.zip |
kde-misc/plasma-emergelog: Remove last-rited pkg
Diffstat (limited to 'kde-misc/plasma-emergelog/files/plasma-emergelog-0.0.2-list.patch')
-rw-r--r-- | kde-misc/plasma-emergelog/files/plasma-emergelog-0.0.2-list.patch | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/kde-misc/plasma-emergelog/files/plasma-emergelog-0.0.2-list.patch b/kde-misc/plasma-emergelog/files/plasma-emergelog-0.0.2-list.patch deleted file mode 100644 index 732cde2d7a67..000000000000 --- a/kde-misc/plasma-emergelog/files/plasma-emergelog-0.0.2-list.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git plasma-emergelog.cpp plasma-emergelog.cpp -index 362eaa3..f3e8ea8 100644 ---- old/plasma-emergelog-0.0.2/plasma-emergelog.cpp -+++ new/plasma-emergelog-0.0.2/plasma-emergelog.cpp -@@ -35,6 +35,7 @@ - #include "plasma-emergelog-painter.h" - #include <exception> - #include <iostream> -+#include <cmath> - - - class myexception: public std::exception -@@ -167,7 +168,7 @@ void emergelog::process_data(){ - /* Create a list . Each element is a line from that file */ - list = data.split('\n', QString::SkipEmptyParts); - /* read the block BACKWARDS */ -- for (int i=list.size()-1;i>(list.size()-(document->maximumBlockCount()));i--){ -+ for (int i=list.size()-1;i>std::max<int>(0, list.size()-(document->maximumBlockCount()));i--){ - if(cursor.position() != 0){ - cursor.insertBlock(); - } |