[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kspread
From: Sebastian Sauer <mail () dipe ! org>
Date: 2009-12-16 23:05:06
Message-ID: 1261004706.780755.25050.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1063100 by sebsauer:
Fix #REF error for invalid cell/sheet references
M +3 -1 Formula.cpp
--- trunk/koffice/kspread/Formula.cpp #1063099:1063100
@@ -1523,7 +1523,9 @@
entry.reset();
if (d->sheet) {
const Region region(c, d->sheet->map(), d->sheet);
- if (region.isValid() && region.isSingular()) {
+ if( ! region.isValid() ) {
+ val1 = Value::errorREF();
+ } else if ( region.isSingular()) {
const QPoint position = region.firstRange().topLeft();
if (cellIndirections.isEmpty())
val1 = Cell(region.firstSheet(), position).value();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic