summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cui/source/tabpages/chardlg.cxx5
-rw-r--r--sc/qa/uitest/chart/chartAxes.py13
2 files changed, 14 insertions, 4 deletions
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index 3245f516338c..56eb92e9b172 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -2389,10 +2389,7 @@ void SvxCharEffectsPage::PageCreated(const SfxAllItemSet& aSet)
if (pDisableCtlItem)
DisableControls(pDisableCtlItem->GetValue());
- if (!pFlagItem)
- return;
-
- sal_uInt32 nFlags=pFlagItem->GetValue();
+ sal_uInt32 nFlags = pFlagItem ? pFlagItem->GetValue() : 0;
if ( ( nFlags & SVX_PREVIEW_CHARACTER ) == SVX_PREVIEW_CHARACTER )
// the writer uses SID_ATTR_BRUSH as font background
m_bPreviewBackgroundToCharacter = true;
diff --git a/sc/qa/uitest/chart/chartAxes.py b/sc/qa/uitest/chart/chartAxes.py
index a4ca1d8a1c35..4a5cbab2e5ef 100644
--- a/sc/qa/uitest/chart/chartAxes.py
+++ b/sc/qa/uitest/chart/chartAxes.py
@@ -10,6 +10,7 @@ from uitest.framework import UITestCase
from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file
from libreoffice.uno.propertyvalue import mkPropertyValues
+from uitest.uihelper.common import select_pos
# Chart Enable Axes dialog
@@ -55,5 +56,17 @@ class chartAxes(UITestCase):
self.assertEqual(get_state_as_dict(secondaryX)["Selected"], "true")
self.assertEqual(get_state_as_dict(secondaryY)["Selected"], "true")
+ # Test Format -> Axis -> X Axis...: the child name is generated in
+ # lcl_getAxisCIDForCommand().
+ xAxisX = xChartMain.getChild("CID/D=0:CS=0:Axis=0,0")
+ with self.ui_test.execute_dialog_through_action(xAxisX, "COMMAND", mkPropertyValues({"COMMAND": "DiagramAxisX"})) as xDialog:
+ xTabs = xDialog.getChild("tabcontrol")
+ # Select RID_SVXPAGE_CHAR_EFFECTS, see the SchAttribTabDlg ctor.
+ select_pos(xTabs, "6")
+ xFontTransparency = xDialog.getChild("fonttransparencymtr")
+ # Without the accompanying fix in place, this test would have failed, the
+ # semi-transparent text UI was visible, but then it was lost on save.
+ self.assertEqual(get_state_as_dict(xFontTransparency)["Visible"], "false")
+
# vim: set shiftwidth=4 softtabstop=4 expandtab: