diff options
author | Armin Weiss <aw@openoffice.org> | 2002-12-09 14:54:57 +0000 |
---|---|---|
committer | Armin Weiss <aw@openoffice.org> | 2002-12-09 14:54:57 +0000 |
commit | ec8f08aef9edbb0b633ff2e27d6bf90e0e887780 (patch) | |
tree | 7c4506191a744feeefda53bd79df31a8f79384b7 /svx/source | |
parent | 0c74c25fd3fa0af7bfdd062b9651948e15141a6d (diff) |
#105899# Solved bug differently. Now, all objects are first converted to poly objects before combining.
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdedtv2.cxx | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx index cfed48e82e9d..b0cc254ac2a4 100644 --- a/svx/source/svdraw/svdedtv2.cxx +++ b/svx/source/svdraw/svdedtv2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdedtv2.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: aw $ $Date: 2002-07-01 14:06:47 $ + * last change: $Author: aw $ $Date: 2002-12-09 15:54:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1109,6 +1109,19 @@ void SdrEditView::MergeMarkedObjects(SdrMergeMode eMode) BOOL SdrEditView::CombineMarkedObjects(BOOL bNoPolyPoly) { + // #105899# Start of Combine-Undo put to front, else ConvertMarkedToPolyObj would + // create a 2nd Undo-action and Undo-Comment. + + // Undo-String will be set later + BegUndo(String(), String(), + bNoPolyPoly ? SDRREPFUNC_OBJ_COMBINE_ONEPOLY : SDRREPFUNC_OBJ_COMBINE_POLYPOLY); + + // #105899# First, guarantee that all objects are converted to polyobjects, + // especially for SdrGrafObj with bitmap filling this is necessary to not + // loose the bitmap filling. + ConvertMarkedToPolyObj(TRUE); + + // continue as before bCombineError = FALSE; XPolyPolygon aXPP; SdrObjList* pAktOL = NULL; @@ -1116,10 +1129,6 @@ BOOL SdrEditView::CombineMarkedObjects(BOOL bNoPolyPoly) SdrMarkList aRemoveMerker; aMark.ForceSort(); - // Der Comment wird spaeter zusammengebaut - BegUndo(String(), String(), - bNoPolyPoly ? SDRREPFUNC_OBJ_COMBINE_ONEPOLY : SDRREPFUNC_OBJ_COMBINE_POLYPOLY); - ULONG nInsPos=0xFFFFFFFF; SdrObjList* pInsOL=NULL; SdrPageView* pInsPV=NULL; |