[Libreoffice-commits] .: Branch 'libreoffice-3-6' - sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Aug 28 01:46:26 PDT 2012


 sc/source/core/data/conditio.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9f14fa5f5f6c6edd596a0bfaa9a24facb5c6d83f
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue Aug 28 02:59:39 2012 +0200

    don't crash for invalid repaint ranges in cond formats, fdo#53839
    
    Change-Id: I83cbb2574849c69fba3ca315d7507358654ff2b9

diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index 97ffd61..a5e637c 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -1126,7 +1126,7 @@ void ScConditionEntry::SourceChanged( const ScAddress& rChanged )
                         ScRange aPaint( nCol1,nRow1,nTab1, nCol2,nRow2,nTab2 );
 
                         //  kein Paint, wenn es nur die Zelle selber ist
-                        if ( aPaint.aStart != rChanged || aPaint.aEnd != rChanged )
+                        if ( aPaint.IsValid() && (aPaint.aStart != rChanged || aPaint.aEnd != rChanged ))
                             DataChanged( &aPaint );
                     }
                 }


More information about the Libreoffice-commits mailing list