cui/source/tabpages/border.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 5f396c627579f8ae647571bde9091ff18aab49ec Author: Zolnai Tamás <[email protected]> Date: Thu Jun 20 11:32:04 2013 +0200 Page border bug: margin edits are enable when no broder To reproduce 1. Format -> Page 2. Set left and ritght borders only (All margins is editable) 4. Set inner margins bigger (using syncronize check box), for example 2 cm 5. Click OK Result Margin appaer just on the right and the left side, so just on those sides where there is a border. Expected: Only the relevant edits must be enable on border tab page just as in case of paragraph borders. Note to fix: Inner margin without border is used only for table, but not for other objects (paragraph, page, frame) Change-Id: Ie611eb29432cb7e75131154d94b4a8db1c3f1bb8 diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx index 26f3a0c..fe68cb6 100644 --- a/cui/source/tabpages/border.cxx +++ b/cui/source/tabpages/border.cxx @@ -1074,8 +1074,8 @@ IMPL_LINK_NOARG(SvxBorderTabPage, LinesChanged_Impl) // for tables everything is allowed sal_uInt16 nValid = VALID_TOP|VALID_BOTTOM|VALID_LEFT|VALID_RIGHT; - // for border and paragraph the edit is disabled, if there's no border set - if(nSWMode & (SW_BORDER_MODE_FRAME|SW_BORDER_MODE_PARA)) + // for other objects (paragraph, page, frame) the edit is disabled, if there's no border set + if(!(nSWMode & SW_BORDER_MODE_TABLE)) { if(bLineSet) {
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
