[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/krita/image
From: Cyrille Berger <cyb () lepi ! org>
Date: 2008-07-22 21:07:17
Message-ID: 1216760837.335568.23964.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 836730 by berger:
call nextRow/nextCol on iterators, this fix applying a filter on a non square selection
bug:164710
M +43 -0 kis_iterators_pixel.h
--- trunk/koffice/krita/image/kis_iterators_pixel.h #836729:836730
@@ -90,6 +90,8 @@
}
return T::nConseqHPixels();
}
+ inline void nextRow();
+ inline void nextCol();
private:
@@ -97,6 +99,47 @@
};
+
+template<>
+inline void KisLineIteratorPixelBase<KisHLineIterator, quint8*>::nextRow()
+{
+ KisHLineIterator::nextRow();
+ if( this->m_selectionIterator )
+ {
+ this->m_selectionIterator->nextRow();
+ }
+}
+
+template<>
+inline void KisLineIteratorPixelBase<KisHLineConstIterator, const quint8*>::nextRow()
+{
+ KisHLineConstIterator::nextRow();
+ if( this->m_selectionIterator )
+ {
+ this->m_selectionIterator->nextRow();
+ }
+}
+
+template<>
+inline void KisLineIteratorPixelBase<KisVLineIterator, quint8*>::nextCol()
+{
+ KisVLineIterator::nextCol();
+ if( this->m_selectionIterator )
+ {
+ this->m_selectionIterator->nextCol();
+ }
+}
+
+template<>
+inline void KisLineIteratorPixelBase<KisVLineConstIterator, const quint8*>::nextCol()
+{
+ KisVLineConstIterator::nextCol();
+ if( this->m_selectionIterator )
+ {
+ this->m_selectionIterator->nextCol();
+ }
+}
+
template<class T, typename TSelect>
class KisRectIteratorPixelBase : public T, public KisIteratorPixelTrait<T, TSelect>
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic