<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - button flashing - mouse wheel zooming breaks"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=121963#c50">Comment # 50</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - button flashing - mouse wheel zooming breaks"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=121963">bug 121963</a>
from <span class="vcard"><a class="email" href="mailto:Armin.Le.Grand@me.com" title="Armin Le Grand <Armin.Le.Grand@me.com>"> <span class="fn">Armin Le Grand</span></a>
</span></b>
<pre>Problem is that ViewObjectContactOfUnoControl_Impl::positionAndZoomControl is
used in two scenarios:
(1) During paint -> GridOffset is already part of ViewTransformation2D
(2) Other (IsVisible, getPrimSeq, ...) -> GridOffset *not* added
while (1) is coming from LazyControlCreationPrimitive2D::get2DDecomposition
while (2) comes from ViewObjectContactOfUnoControl::isPrimitiveVisible.
Using m_pAntiImpl->getObjectRange() in
ViewObjectContactOfUnoControl_Impl::positionAndZoomControl in both cases will
not work -> in case (1) the GridOffset will be taken into account *twice*. So
there are two alternatives:
(a) extend ViewObjectContactOfUnoControl_Impl::positionAndZoomControl with a
flag to internally know if GridOffset is alread added
(b) add GridOffset for all usages of (2) to ViewTransformation2D
Not sure what is better, have to think about it strategically/from the
underlying principle...</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>