summaryrefslogtreecommitdiff
path: root/svx/source/dialog/dlgctrl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-13 08:40:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-13 09:41:54 +0100
commitf6b3b696ad9d454f7acbe930439cccc052e9fce2 (patch)
treecd80ccb808ac73ace9c905bd3cb36d69f7210be2 /svx/source/dialog/dlgctrl.cxx
parent21b0bd63a41bda1153bb6173ec23ecdd13353999 (diff)
loplugin:singlevalfields in svx
Change-Id: I94d21bb868c54638b843c6abaab370a05ec3471e Reviewed-on: https://gerrit.libreoffice.org/63317 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/dialog/dlgctrl.cxx')
-rw-r--r--svx/source/dialog/dlgctrl.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index d91160e4aa1e..9b3d6f8eb135 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -923,8 +923,7 @@ void FillTypeLB::Fill()
}
LineLB::LineLB(vcl::Window* pParent)
-: ListBox(pParent, WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL),
- mbAddStandardFields(true)
+: ListBox(pParent, WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL)
{
// No EdgeBlending for LineStyle/Dash SetEdgeBlending(true);
}
@@ -938,15 +937,12 @@ void LineLB::Fill( const XDashListRef &pList )
if( !pList.is() )
return;
- if(getAddStandardFields())
- {
- // entry for 'none'
- InsertEntry(pList->GetStringForUiNoLine());
+ // entry for 'none'
+ InsertEntry(pList->GetStringForUiNoLine());
- // entry for solid line
- InsertEntry(pList->GetStringForUiSolidLine(),
- Image(pList->GetBitmapForUISolidLine()));
- }
+ // entry for solid line
+ InsertEntry(pList->GetStringForUiSolidLine(),
+ Image(pList->GetBitmapForUISolidLine()));
// entries for dashed lines