summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-02-23 23:15:07 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-02-23 23:50:11 +0900
commitc750e1a92bad68c3518c1836f6a258a19be8b68c (patch)
tree7d2dc57962c00766e1743d81059ee053f01787cb /sc/source/ui
parentb01bcbda617b9e53e1ba9b0d3e9808cc6930c6f0 (diff)
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
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/inc/tabsplit.hxx1
-rw-r--r--sc/source/ui/view/tabsplit.cxx12
2 files changed, 0 insertions, 13 deletions
diff --git a/sc/source/ui/inc/tabsplit.hxx b/sc/source/ui/inc/tabsplit.hxx
index a81e80316706..e2a5cb597c9e 100644
--- a/sc/source/ui/inc/tabsplit.hxx
+++ b/sc/source/ui/inc/tabsplit.hxx
@@ -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,
diff --git a/sc/source/ui/view/tabsplit.cxx b/sc/source/ui/view/tabsplit.cxx
index 755aeef99808..073aaf11141e 100644
--- a/sc/source/ui/view/tabsplit.cxx
+++ b/sc/source/ui/view/tabsplit.cxx
@@ -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;