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

Michael Meeks michael at kemper.freedesktop.org
Thu Mar 1 13:33:57 PST 2012


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

New commits:
commit 17322a611dd5add334f15539193dd0090e99ef01
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
    
    Signed-off-by: Kohei Yoshida <kohei.yoshida at suse.com>
    Signed-off-by: Michael Stahl <mstahl at redhat.com>
    Signed-off-by: Michael Meeks <michael.meeks at suse.com>

diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx
index 8ddc540..9b431fa 100644
--- a/sc/source/core/data/cell.cxx
+++ b/sc/source/core/data/cell.cxx
@@ -226,7 +226,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