diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-04-26 17:19:32 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-04-26 17:25:34 +0200 |
commit | 0ef2999f7b498686ad38749b93f0591dd52bcc50 (patch) | |
tree | 89d285f98cefa0918d909b53ed19d7d07fc4c439 /vcl/source/window/menu.cxx | |
parent | 8bbf51e7adb2d493be2131690926ef7fa1b37cb1 (diff) |
vcl: MenuFloatingWindow::InitClipRegion() should not be virtual
When OutputDevice's ImplInitClipRegion got marked as virtual, the
compiler raised a warning about colliding method names in
MenuFloatingWindow, and this got fixed by making the method virtual. But
making it virtual just makes the warning go away, doesn't fix the real
problem, that OutputDevice's ImplInitClipRegion() is no longer called,
leading to strange missing text in the menus.
In the meantime also ImplInitClipRegion() got renamed to
InitClipRegion(). Fix the problem by renaming InitClipRegion() to
InitMenuClipRegion() in MenuFloatingWindow.
Regression from 95711f5b9e7b6a982d1762d37d5a38e0f40b86f9 (fdo#74702 Move
ImplInitClipRegion Window code out of OutputDevice, 2014-04-25).
Change-Id: Ibeb5e8e99bf4369b349ac44376a2c217786ef318
Diffstat (limited to 'vcl/source/window/menu.cxx')
-rw-r--r-- | vcl/source/window/menu.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 143a95ea3cd0..12dd097c2412 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -509,7 +509,7 @@ private: virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; protected: Region ImplCalcClipRegion( bool bIncludeLogo = true ) const; - virtual void InitClipRegion() SAL_OVERRIDE; + void InitMenuClipRegion(); void ImplDrawScroller( bool bUp ); using Window::ImplScroll; void ImplScroll( const Point& rMousePos ); @@ -4032,7 +4032,7 @@ Region MenuFloatingWindow::ImplCalcClipRegion( bool bIncludeLogo ) const return aRegion; } -void MenuFloatingWindow::InitClipRegion() +void MenuFloatingWindow::InitMenuClipRegion() { if ( IsScrollMenu() ) { |