[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: koffice/plugins/chartshape/kdchart/src
From:       Sebastian Sauer <sebastian.sauer () kdab ! com>
Date:       2010-10-22 13:22:41
Message-ID: 201010221522.41629.sebastian.sauer () kdab ! com
[Download RAW message or body]

On Friday 22 October 2010 01:41:52 Johannes Simon wrote:
> SVN commit 1188310 by jsimon:
> 
> This check can't be used for columns/rowsRemoved() because it is called
> after the column/row was removed from the model, thus asking the model if
> the row being removed is valid doesn't work.
> 
> Sebastian, I saw you made the change. Please verify the fix. Although I
> like the additional asserts, I don't see why we should silently ignore any
> inconsistency (lines 213 and 302). Is there a certain case that requires
> tolerating them?

Not any longer since we are proper handling that condition in kdchart now 
(r1187158).

> See r1187158.
> 
> CCMAIL: sebastian.sauer@kdab.com
> 
>  M  +2 -2      KDChartModelDataCache_p.h
> 
> 
> --- trunk/koffice/plugins/chartshape/kdchart/src/KDChartModelDataCache_p.h
> #1188309:1188310 @@ -230,7 +230,7 @@
>          {
>              Q_ASSERT( m_model != 0 );
> 
> -            if( parent != m_rootIndex || start >=
> m_model->columnCount(m_rootIndex) ) +            if( parent != m_rootIndex
> )
>                  return;
> 
>              Q_ASSERT( start <= end );
> @@ -316,7 +316,7 @@
>          {
>              Q_ASSERT( m_model != 0 );
> 
> -            if( parent != m_rootIndex || start >=
> m_model->rowCount(m_rootIndex) ) +            if( parent != m_rootIndex )
>                  return;
> 
>              Q_ASSERT( start <= end );

-- 
Best regards

Sebastian Sauer | sebastian.sauer@kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Germany: +49-30-521325470, Sweden (HQ): +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic