summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorRegina Henschel <rb.henschel@t-online.de>2020-11-13 18:29:20 +0100
committerRegina Henschel <rb.henschel@t-online.de>2020-11-15 09:04:14 +0100
commit670d10f2b06656973a61e956956b149bae01721f (patch)
tree69957606b15501692cbb9c7eed9a9bb98b08b5a1 /framework
parent42a691933429dbb315de2bd7ba2724993c60411f (diff)
Avoid changing anchor on visibility change of cell
This is an addition to commit 1f0b3c7a40edfa81bbc7a58d123a6a2dfd83e4ca The following scenario had produced a wrong object size: The object is anchored to cell. Some columns containing this cell were hidden and then shown again. ScDrawLayer::SetCellAnchoredFromPosition was called in this case and had produced the wrong size. When the column of the object anchor is shown, object becomes visible. This gives an 'object change' event, sent to ScDrawView::Notify, which calls adjustAnchoredPosition. That had a test pAnchor->getShapeRect() == pObj->GetSnapRect() that should prevent calling SetCellAnchoredFromPosition. But exact equality fails due to +-1 differencies because of Twips<->Hmm conversions. Change-Id: I0bd3684b7a5eda62b578275c02a5ac839ce58e2c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105802 Tested-by: Jenkins Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'framework')
0 files changed, 0 insertions, 0 deletions