parent
eda739924d
commit
9a48ff5ca0
@ -1,39 +0,0 @@
|
||||
From 342f3cfe6f2b27ea62bd9883e16014c188276356 Mon Sep 17 00:00:00 2001
|
||||
From: Kohei Yoshida <kyoshida@novell.com>
|
||||
Date: Wed, 22 Dec 2010 12:31:22 -0500
|
||||
Subject: [PATCH 1/2] Avoid double-paste when pasting text into cell comment. (fdo#32572)
|
||||
|
||||
Original patch is from Caolan. I re-worked it to handle more use
|
||||
cases.
|
||||
---
|
||||
sc/source/ui/view/gridwin.cxx | 20 ++++++++++++++++++++
|
||||
1 files changed, 20 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
|
||||
index 0d32bae..6826829 100644
|
||||
--- a/sc/source/ui/view/gridwin.cxx
|
||||
+++ b/sc/source/ui/view/gridwin.cxx
|
||||
@@ -4298,6 +4298,23 @@ void ScGridWindow::PasteSelection( const Point& rPosPixel )
|
||||
SCsROW nPosY;
|
||||
pViewData->GetPosFromPixel( rPosPixel.X(), rPosPixel.Y(), eWhich, nPosX, nPosY );
|
||||
|
||||
+ // If the mouse down was inside a visible note window, ignore it and
|
||||
+ // leave it up to the ScPostIt to handle it
|
||||
+ SdrView* pDrawView = pViewData->GetViewShell()->GetSdrView();
|
||||
+ if (pDrawView)
|
||||
+ {
|
||||
+ ULONG nCount = pDrawView->GetMarkedObjectCount();
|
||||
+ for (ULONG i = 0; i < nCount; ++i)
|
||||
+ {
|
||||
+ SdrObject* pObj = pDrawView->GetMarkedObjectByIndex(i);
|
||||
+ if (pObj && pObj->GetLogicRect().IsInside(aLogicPos))
|
||||
+ {
|
||||
+ // Inside an active drawing object. Bail out.
|
||||
+ return;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
ScSelectionTransferObj* pOwnSelection = SC_MOD()->GetSelectionTransfer();
|
||||
if ( pOwnSelection )
|
||||
{
|
@ -1,35 +0,0 @@
|
||||
From 1b58066892daa9365d23b39d7439fbbe7d562b13 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
|
||||
Date: Wed, 22 Dec 2010 14:18:41 +0000
|
||||
Subject: [PATCH] Resolves: rhbz#660342 Undo/Redo crash with postits
|
||||
|
||||
---
|
||||
sw/source/core/undo/SwUndoField.cxx | 5 +++--
|
||||
1 files changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/sw/source/core/undo/SwUndoField.cxx b/sw/source/core/undo/SwUndoField.cxx
|
||||
index 6d93bfc..7bb38c3 100644
|
||||
--- a/sw/source/core/undo/SwUndoField.cxx
|
||||
+++ b/sw/source/core/undo/SwUndoField.cxx
|
||||
@@ -87,7 +87,8 @@ SwUndoFieldFromDoc::~SwUndoFieldFromDoc()
|
||||
void SwUndoFieldFromDoc::Undo( SwUndoIter& )
|
||||
{
|
||||
SwTxtFld * pTxtFld = SwDoc::GetTxtFld(GetPosition());
|
||||
- const SwField * pField = pTxtFld->GetFld().GetFld();
|
||||
+
|
||||
+ const SwField * pField = pTxtFld ? pTxtFld->GetFld().GetFld() : NULL;
|
||||
|
||||
if (pField)
|
||||
{
|
||||
@@ -102,7 +103,7 @@ void SwUndoFieldFromDoc::Undo( SwUndoIter& )
|
||||
void SwUndoFieldFromDoc::Redo( SwUndoIter& )
|
||||
{
|
||||
SwTxtFld * pTxtFld = SwDoc::GetTxtFld(GetPosition());
|
||||
- const SwField * pField = pTxtFld->GetFld().GetFld();
|
||||
+ const SwField * pField = pTxtFld ? pTxtFld->GetFld().GetFld() : NULL;
|
||||
|
||||
if (pField)
|
||||
{
|
||||
--
|
||||
1.7.3.3
|
||||
|
@ -1,26 +0,0 @@
|
||||
From 963c6b655032b4e5d0f26555f3c26a129a9efb03 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
|
||||
Date: Sat, 18 Dec 2010 18:26:18 +0000
|
||||
Subject: [PATCH] Resoves: rhbz#663857 font color missing; C++ FAQ 10.3 doomage
|
||||
|
||||
---
|
||||
slideshow/source/engine/color.cxx | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/slideshow/source/engine/color.cxx b/slideshow/source/engine/color.cxx
|
||||
index 0f8a8f7..341a54a 100644
|
||||
--- a/slideshow/source/engine/color.cxx
|
||||
+++ b/slideshow/source/engine/color.cxx
|
||||
@@ -229,8 +229,8 @@ namespace slideshow
|
||||
}
|
||||
|
||||
RGBColor::RGBColor(const RGBColor& rLHS)
|
||||
+ : maRGBTriple( rLHS.maRGBTriple )
|
||||
{
|
||||
- RGBColor(rLHS.getRed(), rLHS.getGreen(), rLHS.getBlue());
|
||||
}
|
||||
|
||||
RGBColor& RGBColor::operator=( const RGBColor& rLHS ){
|
||||
--
|
||||
1.7.3.3
|
||||
|
Loading…
Reference in new issue