diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-02 13:21:35 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-02 13:28:27 -0500 |
commit | 018500a73f3b1082b6662b7c123dfe5158ae5752 (patch) | |
tree | 8185e9232676ca390cb37082fe374982d7bb6dd5 /sc/inc/mtvcellfunc.hxx | |
parent | fdo#74325: Write unit test for cell note export to ods. (diff) | |
download | core-018500a73f3b1082b6662b7c123dfe5158ae5752.tar.gz core-018500a73f3b1082b6662b7c123dfe5158ae5752.zip |
fdo#74325: Ensure that all note objects have an sdr object before exporting.
Otherwise, if a note hasn't been displayed at least once before saving
that note would not get saved. In the future, we should modify the export
code to not rely on SdrObject to check the presence of note.
Change-Id: Ib7ca3ac00a0c9cdd3a01facda7af479ef172afbe
Diffstat (limited to 'sc/inc/mtvcellfunc.hxx')
-rw-r--r-- | sc/inc/mtvcellfunc.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/inc/mtvcellfunc.hxx b/sc/inc/mtvcellfunc.hxx index c54d02ebd339..793f2dbc1872 100644 --- a/sc/inc/mtvcellfunc.hxx +++ b/sc/inc/mtvcellfunc.hxx @@ -159,6 +159,13 @@ FindFormulaEditText(const CellStoreType& rStore, SCROW nRow1, SCROW nRow2, _Func return FindElement2<CellStoreType, edittext_block, formula_block, _Func, _Func>(rStore, nRow1, nRow2, rFunc, rFunc); } +template<typename _Func> +void ProcessNote(CellNoteStoreType& rStore, _Func& rFunc) +{ + FuncElseNoOp<size_t> aElse; + ProcessElements1<CellNoteStoreType, cellnote_block, _Func, FuncElseNoOp<size_t> >(rStore, rFunc, aElse); +} + } #endif |