[Libreoffice-commits] .: 3 commits - sc/qa sc/source svl/source

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Mon Nov 7 19:52:01 PST 2011


 sc/qa/unit/ucalc.cxx           |    4 ++--
 sc/source/ui/view/cellsh1.cxx  |    7 ++++---
 svl/source/numbers/zformat.cxx |    2 +-
 3 files changed, 7 insertions(+), 6 deletions(-)

New commits:
commit 4687fe4917889a0fc0c4ca377970cb006bd59c85
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue Nov 8 04:48:40 2011 +0100

    fdo#36100: show blink borders for cut like we do for copy

diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index 8a703b8..98f49e3 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -1150,7 +1150,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
         case SID_COPY:              // fuer Grafiken in DrawShell
             {
                 WaitObject aWait( GetViewData()->GetDialogParent() );
-                pTabViewShell->CopyToClip( NULL, false, false, sal_True );
+                pTabViewShell->CopyToClip( NULL, false, false, true );
                 rReq.Done();
                 GetViewData()->SetPasteMode( (ScPasteFlags) (SC_PASTE_MODE | SC_PASTE_BORDER) );
                 pTabViewShell->ShowCursor();
@@ -1161,9 +1161,10 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
         case SID_CUT:               // fuer Grafiken in DrawShell
             {
                 WaitObject aWait( GetViewData()->GetDialogParent() );
-                pTabViewShell->CutToClip( NULL, sal_True );
+                pTabViewShell->CutToClip( NULL, true );
                 rReq.Done();
-                GetViewData()->SetPasteMode( SC_PASTE_MODE );
+                GetViewData()->SetPasteMode( (ScPasteFlags)(SC_PASTE_MODE | SC_PASTE_BORDER));
+                pTabViewShell->ShowCursor();
                 pTabViewShell->UpdateCopySourceOverlay();
             }
             break;
commit 0405deaf2d9f06dacea3b22def047a126eceebd7
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue Nov 8 04:33:55 2011 +0100

    we only have one sheet in the new PostIt test

diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index b40b788..8621dfc 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -2098,14 +2098,14 @@ void Test::testPostIts()
     ScPostIt *pGetNote = m_pDoc->GetNote(rAddr);
     CPPUNIT_ASSERT_MESSAGE("note should be itself", pGetNote == pNote );
 
-    bool bInsertRow = m_pDoc->InsertRow( 0, 0, 100, 1, 1, 1 );
+    bool bInsertRow = m_pDoc->InsertRow( 0, 0, 100, 0, 1, 1 );
     CPPUNIT_ASSERT_MESSAGE("failed to insert row", bInsertRow );
 
     CPPUNIT_ASSERT_MESSAGE("note hasn't moved", m_pDoc->GetNote(rAddr) == NULL);
     rAddr.IncRow();
     CPPUNIT_ASSERT_MESSAGE("note not there", m_pDoc->GetNote(rAddr) == pNote);
 
-    bool bInsertCol = m_pDoc->InsertCol( 0, 0, 100, 1, 1, 1 );
+    bool bInsertCol = m_pDoc->InsertCol( 0, 0, 100, 0, 1, 1 );
     CPPUNIT_ASSERT_MESSAGE("failed to insert column", bInsertCol );
 
     CPPUNIT_ASSERT_MESSAGE("note hasn't moved", m_pDoc->GetNote(rAddr) == NULL);
commit 56d1c2e4ec25fb13a75f3dfde8efc2c6f694358b
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue Nov 8 01:33:38 2011 +0100

    fdo#37925: don't show -0 as number in a cell

diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 9784d4d..d9d71d5 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -2252,7 +2252,7 @@ bool SvNumberformat::GetOutputString(double fNumber,
             {
                 if (rScan.GetStandardPrec() == SvNumberFormatter::UNLIMITED_PRECISION)
                 {
-                    bool bSign = ::rtl::math::isSignBitSet(fNumber);
+                    bool bSign = ::rtl::math::isSignBitSet(fNumber) && fNumber != 0.0;
                     if (bSign)
                         fNumber = -fNumber;
                     ImpGetOutputStdToPrecision(fNumber, OutString, 10); // Use 10 decimals for general 'unlimited' format.


More information about the Libreoffice-commits mailing list