[Libreoffice-commits] core.git: Branch 'private/kohei/chart-bugs' - sc/source
Kohei Yoshida
kohei.yoshida at collabora.com
Wed Jun 18 07:36:46 PDT 2014
sc/source/core/data/column.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 8af4776570d9e3d61f8a7dce5a9a24454fbd9bc6
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Wed Jun 18 10:33:03 2014 -0400
Copy the number formats when copying sheet data for chart on clipboard.
Else the chart may lose number formats when pasted.
Change-Id: I7a6c0b0fb6e9b6043a6c925e78d7ec78eb5ee689
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index f0dc03a..2c161f8 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -1157,6 +1157,10 @@ void ScColumn::CopyStaticToDocument(SCROW nRow1, SCROW nRow2, ScColumn& rDestCol
break;
}
+ // Dont' forget to copy the number formats over. Charts may reference them.
+ for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow)
+ rDestCol.SetNumberFormat(nRow, GetNumberFormat(nRow));
+
rDestCol.CellStorageModified();
}
More information about the Libreoffice-commits
mailing list