summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/config/optpage.cxx8
-rw-r--r--sw/source/ui/frmdlg/frmpage.cxx4
2 files changed, 1 insertions, 11 deletions
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx
index 84c3cf26df57..2369aa04b729 100644
--- a/sw/source/ui/config/optpage.cxx
+++ b/sw/source/ui/config/optpage.cxx
@@ -549,7 +549,6 @@ SwStdFontTabPage::SwStdFontTabPage( vcl::Window* pParent,
m_bSetLabelDefault(true),
m_bIdxDefault(false),
m_bSetIdxDefault(true),
- m_bDeletePrinter(false),
m_bListHeightDefault (false),
m_bSetListHeightDefault (false),
@@ -611,8 +610,6 @@ SwStdFontTabPage::~SwStdFontTabPage()
void SwStdFontTabPage::dispose()
{
delete m_pFontList;
- if (m_bDeletePrinter)
- m_pPrt.disposeAndClear();
m_pLabelFT.clear();
m_pStandardBox.clear();
m_pStandardHeightLB.clear();
@@ -802,11 +799,6 @@ void SwStdFontTabPage::Reset( const SfxItemSet* rSet)
const SfxPoolItem* pItem;
- if (m_bDeletePrinter)
- {
- m_pPrt.disposeAndClear();
- }
-
if(SfxItemState::SET == rSet->GetItemState(FN_PARAM_PRINTER, false, &pItem))
{
m_pPrt = static_cast<SfxPrinter*>(static_cast<const SwPtrItem*>(pItem)->GetValue());
diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx
index df4760deb996..7f90f17dec1a 100644
--- a/sw/source/ui/frmdlg/frmpage.cxx
+++ b/sw/source/ui/frmdlg/frmpage.cxx
@@ -2627,7 +2627,6 @@ BmpWindow::BmpWindow(vcl::Window* pPar, WinBits nStyle)
, bHorz(false)
, bVert(false)
, bGraphic(false)
- , bLeftAlign(false)
{
}
@@ -2675,8 +2674,7 @@ void BmpWindow::Paint(vcl::RenderContext& rRenderContext, const Rectangle&)
else
aPntSz.Width() = aPntSz.Height() * nRelGrf /100;
- if (!bLeftAlign)
- aPntPos.X() += nWidth - aPntSz.Width() ;
+ aPntPos.X() += nWidth - aPntSz.Width() ;
}
// #i119307# clear window background, the graphic might have transparency