summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/line/LinePropertyPanel.cxx2
-rw-r--r--svx/source/sidebar/line/LinePropertyPanelBase.cxx7
2 files changed, 5 insertions, 4 deletions
diff --git a/svx/source/sidebar/line/LinePropertyPanel.cxx b/svx/source/sidebar/line/LinePropertyPanel.cxx
index 9659357b2936..9670e74a1aa9 100644
--- a/svx/source/sidebar/line/LinePropertyPanel.cxx
+++ b/svx/source/sidebar/line/LinePropertyPanel.cxx
@@ -199,6 +199,8 @@ void LinePropertyPanel::HandleContextChange(
{
case CombinedEnumContext(Application_Calc, Context_DrawLine):
case CombinedEnumContext(Application_DrawImpress, Context_DrawLine):
+ case CombinedEnumContext(Application_WriterVariants, Context_Draw):
+ // TODO : Implement DrawLine context in Writer
bShowArrows = true;
break;
}
diff --git a/svx/source/sidebar/line/LinePropertyPanelBase.cxx b/svx/source/sidebar/line/LinePropertyPanelBase.cxx
index 5bc9fb98ce46..906a4128e458 100644
--- a/svx/source/sidebar/line/LinePropertyPanelBase.cxx
+++ b/svx/source/sidebar/line/LinePropertyPanelBase.cxx
@@ -901,8 +901,8 @@ void LinePropertyPanelBase::ActivateControls()
mpGridLineProps->Enable( bLineStyle );
mpBoxArrowProps->Enable( bLineStyle );
- mpLBStart->Enable( bLineStyle );
- mpLBEnd->Enable( bLineStyle );
+ mpLBStart->Enable( bLineStyle && mbArrowSupported );
+ mpLBEnd->Enable( bLineStyle && mbArrowSupported );
}
void LinePropertyPanelBase::setMapUnit(SfxMapUnit eMapUnit)
@@ -913,8 +913,7 @@ void LinePropertyPanelBase::setMapUnit(SfxMapUnit eMapUnit)
void LinePropertyPanelBase::disableArrowHead()
{
mbArrowSupported = false;
- mpLBStart->Hide();
- mpLBEnd->Hide();
+ ActivateControls();
}
}} // end of namespace svx::sidebar