summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-12-22 12:45:47 -0500
committerKohei Yoshida <kyoshida@novell.com>2010-12-22 16:21:29 -0500
commit6eec5efb17f15c3e5a5038f7681a7d89500def05 (patch)
tree6c169222465c5d8bd6679d054e34c77afb596081 /sc
parenta05a1b07e99d753393ec99044b834cf02a84d7d4 (diff)
Actually the object doesn't have to be a cell note.
The same problem happens even when the object is not a cell note, but, say, a regular text box. Let's not check whether or not the object is a cell note. Signed-off-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/gridwin.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index f5236e4e99ff..f0fc67c22b76 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -4306,13 +4306,10 @@ void ScGridWindow::PasteSelection( const Point& rPosPixel )
for (ULONG i = 0; i < nCount; ++i)
{
SdrObject* pObj = pDrawView->GetMarkedObjectByIndex(i);
- if (pObj && ScDrawLayer::IsNoteCaption(pObj))
+ if (pObj && pObj->GetLogicRect().IsInside(aLogicPos))
{
- if (pObj->GetLogicRect().IsInside(aLogicPos))
- {
- // Inside an active note object. Bail out.
- return;
- }
+ // Inside an active drawing object. Bail out.
+ return;
}
}
}