[ooo-build-commit] Branch 'ooo/master' - sc/source

Jan Holesovsky kendy at kemper.freedesktop.org
Wed Jul 8 17:14:26 PDT 2009


 sc/source/core/data/column3.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 583eecc5bfa14803c949278910a5329d837ca95f
Author: Release Engineers <releng at openoffice.org>
Date:   Wed Jul 8 13:14:27 2009 +0000

    #i10000# fix for error from dr70

diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 521f6e7..b2c954a 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -782,7 +782,8 @@ void ScColumn::CopyFromClip(SCROW nRow1, SCROW nRow2, long nDy,
                     DBG_ASSERT( !pAddNoteCell->HasNote(), "ScColumn::CopyFromClip - unexpected note at destination cell" );
                     bool bCloneCaption = (nInsFlag & IDF_NOCAPTIONS) == 0;
                     // #i52342# if caption is cloned, the note must be constructed with the destination document
-                    ScPostIt* pNewNote = ScNoteUtil::CloneNote( *pDocument, aDestPos, *pSourceNote, bCloneCaption );
+                    ScAddress aSourcePos( rColumn.nCol, rColumn.pItems[i].nRow, rColumn.nTab );
+                    ScPostIt* pNewNote = pSourceNote->Clone( aSourcePos, *pDocument, aDestPos, bCloneCaption );
                     pAddNoteCell->TakeNote( pNewNote );
                 }
             }


More information about the ooo-build-commit mailing list