Apache OpenOffice (AOO) Bugzilla – Issue 85707
hyperlinks in cells affecting graphic positioning in calc
Last modified: 2017-05-20 11:11:46 UTC
Attached is ok.ods and notok.ods (hand edited xml) Both documents have a graphic anchored to cell in each row. In ok.ods there are no hyperlinks in any cell and the graphics are positioned on screen perfectly. In notok.ods is the exact same document except with hyperlinks placed in the last few rows. In notok.ods all the graphics are misplaced afterwards :-( If I load ok.ods and then copy the hyperlinks from notok.ods then ok.ods remains perfectly ok on screen, *but* if I then save and reload it the graphics become misplaced again.
Created attachment 51248 [details] ok example
Created attachment 51249 [details] not ok
Created attachment 51250 [details] a side-by-side screenshot
Maybe this is related to issue 8049 ?
Yes, basically the same. The row heights are a bit different for the rows with URLs (maybe that should be changed, so the effect wouldn't show in the example).
Hi Niklas, as you had a closer look at this one I think it shoiuld be assigned to you. Frank
Created attachment 51288 [details] experiment with line height
I don't think I at all understand how calc determines the lineheight of a non-editengine cell, e.g. if we end up using a EditEngine then for 10point Arial we have in 100thmm ascent 318, descent 79, intleading 53, outleading 0 -> line height of 397, i.e. .397cm. This is indeed the height that a EditEngine returns in column2.cxx from EditEngine::GetTextHeight() and looks like a solidly derived figure to me, while the calculations in lcl_GetAttribHeight very much confuse me, and to a much lesser extent global.cxx and give lower figures. e.g. to my naive eyes I'd have expected line heights to be derived something like this attachment.
Reset assigne to the default "issues@openoffice.apache.org".