viewfun6.cxx (b3f79822) viewfun6.cxx (a840a559)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 145 unchanged lines hidden (view full) ---

154 SCCOL nCol = GetViewData()->GetCurX();
155 SCROW nRow = GetViewData()->GetCurY();
156 SCTAB nTab = GetViewData()->GetTabNo();
157 ScAddress aPos( nCol, nRow, nTab );
158
159 // start drawing undo to catch undo action for insertion of the caption object
160 pDocSh->MakeDrawLayer();
161 ScDrawLayer* pDrawLayer = pDoc->GetDrawLayer();
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 145 unchanged lines hidden (view full) ---

154 SCCOL nCol = GetViewData()->GetCurX();
155 SCROW nRow = GetViewData()->GetCurY();
156 SCTAB nTab = GetViewData()->GetTabNo();
157 ScAddress aPos( nCol, nRow, nTab );
158
159 // start drawing undo to catch undo action for insertion of the caption object
160 pDocSh->MakeDrawLayer();
161 ScDrawLayer* pDrawLayer = pDoc->GetDrawLayer();
162 pDrawLayer->BeginCalcUndo();
162 pDrawLayer->BeginCalcUndo(true);
163 // generated undo action is processed in FuText::StopEditMode
164
165 // get existing note or create a new note (including caption drawing object)
166 if( ScPostIt* pNote = pDoc->GetOrCreateNote( aPos ) )
167 {
168 // hide temporary note caption
169 HideNoteMarker();
170 // show caption object without changing internal visibility state

--- 23 unchanged lines hidden ---
163 // generated undo action is processed in FuText::StopEditMode
164
165 // get existing note or create a new note (including caption drawing object)
166 if( ScPostIt* pNote = pDoc->GetOrCreateNote( aPos ) )
167 {
168 // hide temporary note caption
169 HideNoteMarker();
170 // show caption object without changing internal visibility state

--- 23 unchanged lines hidden ---