Kaydet (Commit) 2e4e8778 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

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.
üst 707bde4f
...@@ -4307,13 +4307,10 @@ void ScGridWindow::PasteSelection( const Point& rPosPixel ) ...@@ -4307,13 +4307,10 @@ void ScGridWindow::PasteSelection( const Point& rPosPixel )
for (ULONG i = 0; i < nCount; ++i) for (ULONG i = 0; i < nCount; ++i)
{ {
SdrObject* pObj = pDrawView->GetMarkedObjectByIndex(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 drawing object. Bail out.
{ return;
// Inside an active note object. Bail out.
return;
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment