https://bugs.documentfoundation.org/show_bug.cgi?id=147989

--- Comment #4 from Julien Nabet <[email protected]> ---
Here's a code pointer:
#0  SwLayoutFrame::Lower() const (this=0x5a3a750) at
sw/source/core/inc/layfrm.hxx:101
#1  0x00007fa9a333d5b4 in SwViewShell::GetPageSize(unsigned short, bool) const
(this=0x5a36090, nPageNum=1, bSkipEmptyPages=true) at
sw/source/core/view/viewsh.cxx:2686
#2  0x00007fa9a3ac7c89 in SwXTextDocument::getRenderer(int,
com::sun::star::uno::Any const&,
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&)
(this=0x5909430, nRenderer=0, rSelection=
    uno::Any("com.sun.star.lang.XComponent": {<com::sun::star::uno::XInterface>
= {_vptr$XInterface = 0x5909608}, <No data fields>}), rxOptions=uno::Sequence
of length 8 = {...})
    at sw/source/uibase/uno/unotxdoc.cxx:2734
#3  0x00007fa9a3ac8d40 in non-virtual thunk to
SwXTextDocument::getRenderer(int, com::sun::star::uno::Any const&,
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) ()
    at sw/source/uibase/uno/unotxdoc.cxx:2823
#4  0x00007fa96c6da28b in PDFExport::ExportSelection(vcl::PDFWriter&,
com::sun::star::uno::Reference<com::sun::star::view::XRenderable> const&,
com::sun::star::uno::Any const&, StringRangeEnumerator const&,
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&, int)
(this=0x7ffca9bd2a10, rPDFWriter=..., rRenderable=uno::Reference to
(SwXTextDocument *) 0x59096e8, rSelection=
    uno::Any("com.sun.star.lang.XComponent": {<com::sun::star::uno::XInterface>
= {_vptr$XInterface = 0x5909608}, <No data fields>}), rRangeEnum=...,
rRenderOptions=uno::Sequence of length 8 = {...}, nPageCount=1) at
filter/source/pdf/pdfexport.cxx:186
#5  0x00007fa96c6df97a in PDFExport::Export(rtl::OUString const&,
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&)
    (this=0x7ffca9bd2a10, rFile="file:///tmp/lu1ib4w.tmp/lu1ib5o.tmp",
rFilterData=uno::Sequence of length 53 = {...}) at
filter/source/pdf/pdfexport.cxx:987

(gdb) p *pTmpRoot->Lower()
$32 = {<SwFrameAreaDefinition> = {_vptr$SwFrameAreaDefinition = 0x7fa9a4761340
<vtable for SwPageFrame+16>, maFrameArea = SwRect = {point = Point = {x = 9755,
y = 284}, size = Size = {width = 8391, 
        height = 11906}}, maFramePrintArea = SwRect = {point = Point = {x =
1134, y = 1134}, size = Size = {width = 6123, height = 9638}},
mbFrameAreaPositionValid = true, mbFrameAreaSizeValid = true, 
    mbFramePrintAreaValid = true, static snLastFrameId = 4, mnFrameId = 1},
<SwClient> = {<sw::WriterListener> = {_vptr$WriterListener = 0x7fa9a4761488
<vtable for SwPageFrame+344>, m_pLeft = 0x0, 
      m_pRight = 0x0}, m_pRegisteredIn = 0x5958d18}, <SfxBroadcaster> =
{_vptr$SfxBroadcaster = 0x7fa9a47614d0 <vtable for SwPageFrame+416>,
m_RemovedPositions = std::__debug::vector of length 0, capacity 0, 
    m_Listeners = std::__debug::vector of length 0, capacity 0}, static spCache
= 0x5918d10, mpRoot = 0x5a3a750, mpUpper = 0x5a3a750, mpNext = 0x0, mpPrev =
0x0, m_pDrawObjs = std::unique_ptr<SwSortedObjs> = {
    get() = 0x0}, mnFrameType = SwFrameType::Page, mbInDtor = false,
mbInvalidR2L = false, mbDerivedR2L = false, mbRightToLeft = false,
mbInvalidVert = false, mbDerivedVert = false, mbVertical = false, 
  mbVertLR = false, mbVertLRBT = false, mbValidLineNum = false, mbFixSize =
true, mbCompletePaint = true, mbRetouche = false, mbInfInvalid = false,
mbInfBody = false, mbInfTab = false, mbInfFly = false, 
  mbInfFootnote = false, mbInfSct = false, mbColLocked = false, m_isInDestroy =
false, mbForbidDelete = false}

and using
https://www.translatorscafe.com/unit-converter/fr-FR/typography/4-1/millimeter-twip/
8391 gives 148.0079166667 which gives 148.01
11906 gives 210.0086111111 which gives 210.01

I think the root cause is the accumulation of roundings.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to