summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/frmedt/feshview.cxx2
-rw-r--r--sw/source/uibase/ribbar/drawbase.cxx11
-rw-r--r--sw/uiconfig/swriter/toolbar/linesbar.xml11
3 files changed, 14 insertions, 10 deletions
diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx
index c599111a9393..0a47026cfbbb 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -2747,6 +2747,7 @@ long SwFEShell::GetSectionWidth( SwFormat const & rFormat ) const
switch(eSdrObjectKind)
{
case OBJ_PATHLINE:
+ case OBJ_PATHFILL:
{
basegfx::B2DPolygon aInnerPoly;
@@ -2769,6 +2770,7 @@ long SwFEShell::GetSectionWidth( SwFormat const & rFormat ) const
}
break;
case OBJ_FREELINE:
+ case OBJ_FREEFILL:
{
basegfx::B2DPolygon aInnerPoly;
diff --git a/sw/source/uibase/ribbar/drawbase.cxx b/sw/source/uibase/ribbar/drawbase.cxx
index b47366b01bf2..c4fac3cca929 100644
--- a/sw/source/uibase/ribbar/drawbase.cxx
+++ b/sw/source/uibase/ribbar/drawbase.cxx
@@ -247,9 +247,12 @@ bool SwDrawBase::MouseButtonUp(const MouseEvent& rMEvt)
{
const SdrObjKind nDrawMode = m_pWin->GetSdrDrawMode();
//objects with multiple point may end at the start position
- bool bMultiPoint = OBJ_PLIN == nDrawMode ||
- OBJ_PATHLINE == nDrawMode ||
- OBJ_FREELINE == nDrawMode;
+ bool bMultiPoint = OBJ_PLIN == nDrawMode ||
+ OBJ_POLY == nDrawMode ||
+ OBJ_PATHLINE == nDrawMode ||
+ OBJ_PATHFILL == nDrawMode ||
+ OBJ_FREELINE == nDrawMode ||
+ OBJ_FREEFILL == nDrawMode;
if(rMEvt.IsRight() || (aPnt == m_aStartPos && !bMultiPoint))
{
m_pSh->BreakCreate();
@@ -618,7 +621,7 @@ Point SwDrawBase::GetDefaultCenterPos()
// #i33136#
bool SwDrawBase::doConstructOrthogonal() const
{
- return false;
+ return ( m_nSlotId == SID_DRAW_XPOLYGON || m_nSlotId == SID_DRAW_XPOLYGON_NOFILL );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/uiconfig/swriter/toolbar/linesbar.xml b/sw/uiconfig/swriter/toolbar/linesbar.xml
index 86fa223659d2..212bb71a1be6 100644
--- a/sw/uiconfig/swriter/toolbar/linesbar.xml
+++ b/sw/uiconfig/swriter/toolbar/linesbar.xml
@@ -18,14 +18,13 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<toolbar:toolbar xmlns:toolbar="http://openoffice.org/2001/toolbar" xmlns:xlink="http://www.w3.org/1999/xlink" toolbar:id="toolbar">
- <toolbar:toolbaritem xlink:href=".uno:Freeline_Unfilled"/>
- <toolbar:toolbaritem xlink:href=".uno:Bezier_Unfilled"/>
- <toolbar:toolbaritem xlink:href=".uno:Polygon_Unfilled"/>
- <toolbar:toolbaritem xlink:href=".uno:Polygon_Diagonal_Unfilled"/>
- <toolbar:toolbarbreak/>
- <toolbar:toolbaritem xlink:href=".uno:Freeline"/>
<toolbar:toolbaritem xlink:href=".uno:BezierFill"/>
<toolbar:toolbaritem xlink:href=".uno:Polygon"/>
<toolbar:toolbaritem xlink:href=".uno:Polygon_Diagonal"/>
+ <toolbar:toolbaritem xlink:href=".uno:Freeline"/>
<toolbar:toolbarbreak/>
+ <toolbar:toolbaritem xlink:href=".uno:Bezier_Unfilled"/>
+ <toolbar:toolbaritem xlink:href=".uno:Polygon_Unfilled"/>
+ <toolbar:toolbaritem xlink:href=".uno:Polygon_Diagonal_Unfilled"/>
+ <toolbar:toolbaritem xlink:href=".uno:Freeline_Unfilled"/>
</toolbar:toolbar>