summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-09-04 19:27:56 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-09-06 22:41:10 +0200
commit1d7e004c1eac97fd94a64490f5d629c8c6b5183f (patch)
tree920f314c11aaf72aee9b67d772463ab6febea352 /sdext
parent6f94c644c3c0c08b245d66519ff7116c54d600b6 (diff)
[cppchecker] deletion of unneeded variables
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) )