You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.0 KiB
28 lines
1.0 KiB
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
|
|
index 0d32bae..7ecdbfa 100644
|
|
--- a/sc/source/ui/view/gridwin.cxx
|
|
+++ b/sc/source/ui/view/gridwin.cxx
|
|
@@ -1689,6 +1689,22 @@ void ScGridWindow::HandleMouseButtonDown( const MouseEvent& rMEvt )
|
|
SCTAB nTab = pViewData->GetTabNo();
|
|
ScDocument* pDoc = pViewData->GetDocument();
|
|
|
|
+ {
|
|
+ //If the mouse down was inside a visible note window, ignore it and leave
|
|
+ //it up to the ScPostIt to handle it
|
|
+ ScAddress aCellPos(pViewData->GetCurX(), pViewData->GetCurY(), pViewData->GetTabNo());
|
|
+ ScPostIt* pNote = pDoc->GetNote(aCellPos);
|
|
+ SdrObject* pObj = pNote ? pNote->GetCaption() : 0;
|
|
+ if (pObj && ScDrawLayer::IsNoteCaption(pObj))
|
|
+ {
|
|
+ Point aLogicPos = PixelToLogic(aPos);
|
|
+ if (pObj->GetLogicRect().IsInside(aLogicPos))
|
|
+ {
|
|
+ bEEMouse = TRUE;
|
|
+ return;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
|
|
//
|
|
// AutoFilter buttons
|