https://bugs.documentfoundation.org/show_bug.cgi?id=91282
--- Comment #22 from Patrick (volunteer) <[email protected]> --- Created attachment 198121 --> https://bugs.documentfoundation.org/attachment.cgi?id=198121&action=edit Stack trace of where LibreOffice saves the shifted toolbar position I used the following debug patch to get this stack trace. Next step is to find the code that actually subtracts the parent window's position from the toolbar position: diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index 01d0b05ac201..b1e406fde075 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -47,6 +47,8 @@ #include <sal/log.hxx> #include <tools/gen.hxx> +#include <unistd.h> + using namespace ::com::sun::star; @@ -1543,6 +1545,11 @@ void ToolbarLayoutManager::implts_writeWindowStateData( const UIElement& rElemen uno::Reference< container::XNameAccess > xPersistentWindowState( m_xPersistentWindowState ); aWriteLock.clear(); +if (rElementData.m_aFloatingData.m_aPos.X < 0 || rElementData.m_aFloatingData.m_aPos.Y < 0) +{ +fprintf(stderr, "Here: %i %i\n", rElementData.m_aFloatingData.m_aPos.X, rElementData.m_aFloatingData.m_aPos.Y); +usleep(1); +} bool bPersistent( false ); uno::Reference< beans::XPropertySet > xPropSet( rElementData.m_xUIElement, uno::UNO_QUERY ); if ( xPropSet.is() ) -- You are receiving this mail because: You are the assignee for the bug.
