Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:yukoff:openSUSE:Leap:42.1:Backports
ktexteditor.4882
0001-Fix-Clazy-fix-mistake-that-broke-selection...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-Clazy-fix-mistake-that-broke-selection-handling-.patch of Package ktexteditor.4882
From 860cb9763c507be2e9202fd4e94116dfb1402566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A5re=20S=C3=A4rs?= <kare.sars@iki.fi> Date: Fri, 25 Mar 2016 23:32:28 +0200 Subject: [PATCH 1/1] Fix "Clazy fix" mistake that broke selection handling/layout cache Among the Clazy warning fixes, was one "count() -> !isEmpty()" that should not have been there in katelayoutcache.cpp CCMAIL: kwrite-devel@kde.org (cherry picked from commit f7f330b21aa394a62ac95ea9bee075f372ff6d9c) --- src/render/katelayoutcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/katelayoutcache.cpp b/src/render/katelayoutcache.cpp index 33781fe..3eb268f 100644 --- a/src/render/katelayoutcache.cpp +++ b/src/render/katelayoutcache.cpp @@ -165,7 +165,7 @@ void KateLayoutCache::updateViewCache(const KTextEditor::Cursor &startPos, int n { //qCDebug(LOG_KTE) << startPos << " nvlc " << newViewLineCount << " vls " << viewLinesScrolled; - int oldViewLineCount = !m_textLayouts.isEmpty(); + int oldViewLineCount = m_textLayouts.count(); if (newViewLineCount == -1) { newViewLineCount = oldViewLineCount; } -- 2.6.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor