diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-08-05 18:51:49 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-08-05 20:30:59 +0400 |
commit | 79509fa629055cdfaca2011fddb4291ed8b3f7dd (patch) | |
tree | ab36d6f7e08225838a12aa2818d0b7290ca6d2c8 /starmath | |
parent | a4e937d5b04b10c2d6ebecce6e77c57a02a95d17 (diff) |
SmCmdBoxWindow: too many frames...
Change-Id: If93baa96c7eacdeae6ad2fdecbe33fc141934094
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/view.cxx | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index f1365b4470e1..798b998cc209 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -721,20 +721,6 @@ SmViewShell * SmCmdBoxWindow::GetView() void SmCmdBoxWindow::Resize() { Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel()); - - if (! IsFloatingMode()) - { - switch (GetAlignment()) - { - case SFX_ALIGN_TOP: aRect.Bottom()--; break; - case SFX_ALIGN_BOTTOM: aRect.Top()++; break; - case SFX_ALIGN_LEFT: aRect.Right()--; break; - case SFX_ALIGN_RIGHT: aRect.Left()++; break; - default: - break; - } - } - DecorationView aView(this); aRect.Left() += 8; aRect.Top() += 8; aRect.Right()-= 8; aRect.Bottom()-= 8; @@ -750,38 +736,6 @@ void SmCmdBoxWindow::Paint(const Rectangle& /*rRect*/) { Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel()); DecorationView aView(this); - - if (! IsFloatingMode()) - { - Point aFrom, aTo; - switch (GetAlignment()) - { - case SFX_ALIGN_TOP: - aFrom = aRect.BottomLeft(); aTo = aRect.BottomRight(); - aRect.Bottom()--; - break; - - case SFX_ALIGN_BOTTOM: - aFrom = aRect.TopLeft(); aTo = aRect.TopRight(); - aRect.Top()++; - break; - - case SFX_ALIGN_LEFT: - aFrom = aRect.TopRight(); aTo = aRect.BottomRight(); - aRect.Right()--; - break; - - case SFX_ALIGN_RIGHT: - aFrom = aRect.TopLeft(); aTo = aRect.BottomLeft(); - aRect.Left()++; - break; - - default: - break; - } - DrawLine( aFrom, aTo ); - aView.DrawFrame(aRect, FRAME_DRAW_OUT); - } aRect.Left() += 8; aRect.Top() += 8; aRect.Right()-= 8; aRect.Bottom()-= 8; aRect = aView.DrawFrame( aRect, FRAME_DRAW_DOUBLEIN ); |