Kaydet (Commit) c750e1a9 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

Remove changing the splitter position as it can cause an inf. loop

Changing the splitter position can cause an infinite loop which is
most likely a cause of a rounding error. This happens constantly
when in HiDPI mode so remove it for now until a better solution is
found.

Change-Id: Id3551b41ea61c36a78f38a51a1fddfcfd104265a
üst b01bcbda
......@@ -32,7 +32,6 @@ private:
protected:
virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE;
virtual void Splitting( Point& rSplitPos ) SAL_OVERRIDE;
public:
ScTabSplitter( vcl::Window* pParent, WinBits nWinStyle,
......
......@@ -43,18 +43,6 @@ void ScTabSplitter::MouseButtonDown( const MouseEvent& rMEvt )
Splitter::MouseButtonDown( rMEvt );
}
void ScTabSplitter::Splitting( Point& rSplitPos )
{
vcl::Window* pParent = GetParent();
Point aScreenPos = pParent->OutputToNormalizedScreenPixel( rSplitPos );
pViewData->GetView()->SnapSplitPos( aScreenPos );
Point aNew = pParent->NormalizedScreenToOutputPixel( aScreenPos );
if ( IsHorizontal() )
rSplitPos.X() = aNew.X();
else
rSplitPos.Y() = aNew.Y();
}
void ScTabSplitter::SetFixed(bool bSet)
{
bFixed = bSet;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment