diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-15 16:25:34 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-15 16:26:07 +0200 |
commit | 92474c05f858502414eabf20c932f72c7e9bda1b (patch) | |
tree | 029ec5bf418ca7a885d05466a5e4b70a30fa6bae /sw/source | |
parent | 99f05d9947db2dd0676fafa66106d17e4d8eea6d (diff) |
sw: indentation fixes
Change-Id: I6cdc7cff7c45e58c9b684ff53a8dd84af7cf0c83
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/ww8/ww8toolbar.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/docvw/PostItMgr.cxx | 30 |
2 files changed, 17 insertions, 17 deletions
diff --git a/sw/source/filter/ww8/ww8toolbar.cxx b/sw/source/filter/ww8/ww8toolbar.cxx index 2377f21d0317..af32be2e83d0 100644 --- a/sw/source/filter/ww8/ww8toolbar.cxx +++ b/sw/source/filter/ww8/ww8toolbar.cxx @@ -53,9 +53,9 @@ MSOWordCommandConvertor::MSOWordCommandConvertor() msoToOOcmd[ 0x20b ] = ".uno:CloseDoc"; msoToOOcmd[ 0x50 ] = ".uno:Open"; - // mso tcid to ooo command string + // mso tcid to ooo command string // #FIXME and *HUNDREDS* of id's to added here - tcidToOOcmd[ 0x9d9 ] = ".uno:Print"; + tcidToOOcmd[ 0x9d9 ] = ".uno:Print"; } OUString MSOWordCommandConvertor::MSOCommandToOOCommand( sal_Int16 key ) diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index 66a2de122539..ee5a8ba9ed9f 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -1790,21 +1790,21 @@ bool SwPostItMgr::ScrollbarHit(const unsigned long aPage,const Point &aPoint) void SwPostItMgr::CorrectPositions() { - if ( mbWaitingForCalcRects || mbLayouting || mvPostItFields.empty() ) - return; - - // find first valid note - SwSidebarWin *pFirstPostIt = nullptr; - for(SwSidebarItem_iterator i = mvPostItFields.begin(); i != mvPostItFields.end() ; ++i) - { - pFirstPostIt = (*i)->pPostIt; - if (pFirstPostIt) - break; - } - - //if we have not found a valid note, forget about it and leave - if (!pFirstPostIt) - return; + if ( mbWaitingForCalcRects || mbLayouting || mvPostItFields.empty() ) + return; + + // find first valid note + SwSidebarWin *pFirstPostIt = nullptr; + for(SwSidebarItem_iterator i = mvPostItFields.begin(); i != mvPostItFields.end() ; ++i) + { + pFirstPostIt = (*i)->pPostIt; + if (pFirstPostIt) + break; + } + + //if we have not found a valid note, forget about it and leave + if (!pFirstPostIt) + return; // yeah, I know, if this is a left page it could be wrong, but finding the page and the note is probably not even faster than just doing it // check, if anchor overlay object exists. |