summaryrefslogtreecommitdiffstats
path: root/sd/source/ui/view/drviews4.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2003-10-27 12:29:57 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2003-10-27 12:29:57 +0000
commit6b3701ff02ce6524aac56b7450021d2c747c10f8 (patch)
treee0a72a2bf800419e4484271b465cd9ddc9cad49f /sd/source/ui/view/drviews4.cxx
parentINTEGRATION: CWS aw005 (1.17.154); FILE MERGED (diff)
downloadcore-6b3701ff02ce6524aac56b7450021d2c747c10f8.tar.gz
core-6b3701ff02ce6524aac56b7450021d2c747c10f8.zip
INTEGRATION: CWS aw005 (1.14.154); FILE MERGED
2003/10/10 12:44:03 aw 1.14.154.1: #109585#
Diffstat (limited to 'sd/source/ui/view/drviews4.cxx')
-rw-r--r--sd/source/ui/view/drviews4.cxx25
1 files changed, 23 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx
index 6a5d2dec3e16..d97c82bd6766 100644
--- a/sd/source/ui/view/drviews4.cxx
+++ b/sd/source/ui/view/drviews4.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: drviews4.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: hr $ $Date: 2003-03-27 10:58:04 $
+ * last change: $Author: rt $ $Date: 2003-10-27 13:29:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -430,6 +430,27 @@ void SdDrawViewShell::MouseMove(const MouseEvent& rMEvt, SdWindow* pWin)
pWin->CaptureMouse();
}
+ // #109585#
+ // Since the next MouseMove may execute a IsSolidDraggingNow() in
+ // SdrCreateView::MovCreateObj and there the ApplicationBackgroundColor
+ // is needed it is necessary to set it here.
+ if(pDrView && pDoc)
+ {
+ svtools::ColorConfig aColorConfig;
+ Color aFillColor;
+
+ if(DOCUMENT_TYPE_IMPRESS == pDoc->GetDocumentType())
+ {
+ aFillColor = Color( aColorConfig.GetColorValue( svtools::APPBACKGROUND ).nColor );
+ }
+ else
+ {
+ aFillColor = Color( aColorConfig.GetColorValue( svtools::DOCCOLOR ).nColor );
+ }
+
+ pDrView->SetApplicationBackgroundColor(aFillColor);
+ }
+
SdViewShell::MouseMove(rMEvt, pWin);
if( !bMousePosFreezed )