summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/tree/writertreevisiting.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/sdext/source/pdfimport/tree/writertreevisiting.cxx b/sdext/source/pdfimport/tree/writertreevisiting.cxx
index f01fb959136d..a2af4a435753 100644
--- a/sdext/source/pdfimport/tree/writertreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/writertreevisiting.cxx
@@ -959,17 +959,13 @@ void WriterXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element
// check for center alignement
// criterion: paragraph is small relative to parent and distributed around its center
double p_x = elem.Parent->x;
- double p_y = elem.Parent->y;
double p_w = elem.Parent->w;
- double p_h = elem.Parent->h;
PageElement* pPage = dynamic_cast<PageElement*>(elem.Parent);
if( pPage )
{
p_x += pPage->LeftMargin;
- p_y += pPage->TopMargin;
p_w -= pPage->LeftMargin+pPage->RightMargin;
- p_h -= pPage->TopMargin+pPage->BottomMargin;
}
bool bIsCenter = false;
if( elem.w < ( p_w/2) )