Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On 12/05/2013 09:35 AM, Samuel Mehrbrodt wrote:
can you please revert
http://cgit.freedesktop.org/libreoffice/core/commit/?id=a50a2111a31e4d9dd5e2659a146e9de8e292de75
?

That one is still needed as the functionality I removed from below the
scrollbar is still available in the Navigator. Now you cannot change the
element by which you navigate anymore.

Oops, I was too aggressive with removing

-void SwView::SetMoveType(sal_uInt16 nSet)
-{
-    sal_Bool bLastPage = m_nMoveType == NID_PGE;
-    m_nMoveType = nSet;
-    sal_Bool bNewPage = m_nMoveType == NID_PGE;
-    if(bNewPage != bLastPage)
-    {
-        Color aColor(bNewPage ? COL_BLACK : VIEW_IMAGECOLOR);
-        const TypeId aTypeId = TYPE(SwView);
-        SwView* pView = (SwView*)SfxViewShell::GetFirst(&aTypeId);
-        while( pView )
-        {
-            pView = (SwView*)SfxViewShell::GetNext(*pView, &aTypeId);
-        }
-    }
-}

completely, erroneously assuming it effectively didn't do anything anymore (I'd been called to action by aColor generating a -Werror,-Wunused-variable now), failing to note the

  m_nMoveType = nSet;

part that is still needed.

I resurrected the hopefully correctly simplified version as <http://cgit.freedesktop.org/libreoffice/core/commit/?id=c6abb084ef6b1f86734395058bcafc61458727b4> "Partly revert 'Appears SwView::SetMoveType no longer really does anything'" now, but cannot test, as I have no idea what "Now you cannot change the element by which you navigate anymore" means.

Stephan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.