[Libreoffice-commits] .: sc/source

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Thu Mar 1 04:03:50 PST 2012


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

New commits:
commit f7fbeac4cbb764ccd153f9aea37a07e66e96b809
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Thu Mar 1 12:59:14 2012 +0100

    use the correct db range for the copy, fdo#46712

diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx
index 37285e7..bd616b1 100644
--- a/sc/source/core/data/cell.cxx
+++ b/sc/source/core/data/cell.cxx
@@ -218,7 +218,7 @@ void adjustDBRange(ScToken* pToken, ScDocument& rNewDoc, const ScDocument* pOldD
     ScDBData* pNewDBData = aNewNamedDBs.findByName(aDBName);
     if (!pNewDBData)
     {
-        pNewDBData = new ScDBData(*pNewDBData);
+        pNewDBData = new ScDBData(*pDBData);
         aNewNamedDBs.insert(pNewDBData);
     }
     pToken->SetIndex(pNewDBData->GetIndex());


More information about the Libreoffice-commits mailing list