diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-05 22:59:04 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-05 23:06:27 -0500 |
commit | bc504b5adfaeeac0b910b89b0c98ae564f1ff5b8 (patch) | |
tree | 8259b0795bd42d3a81f6c656372f34638c62fbd7 /sc/inc/table.hxx | |
parent | fe5d604ecf6de4935c622e0e95efc085c4a3cbfd (diff) |
fdo#74556: Correctly handle note captions life cycles.
When copying notes to clipboard, we don't clone captions but leave them
pointing to the original captions objects. Also, during undo and redo,
we need to clear all caption pointers to prevent them from being deleted
when the ScPostIt objects get deleted. The undo and redo of caption objects
are handled in the drawing layer afterwards.
Change-Id: I2b9cf0858dba5b3cac26db3ef501ea09779a795a
Diffstat (limited to 'sc/inc/table.hxx')
-rw-r--r-- | sc/inc/table.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 0ac441cbf610..1e8764b7f12c 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -393,6 +393,7 @@ public: size_t GetNoteCount( SCCOL nCol ) const; SCROW GetNotePosition( SCCOL nCol, size_t nIndex ) const; void CreateAllNoteCaptions(); + void ForgetNoteCaptions( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); void GetAllNoteEntries( std::vector<sc::NoteEntry>& rNotes ) const; void GetNotesInRange( const ScRange& rRange, std::vector<sc::NoteEntry>& rNotes ) const; |