diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2016-09-30 23:31:15 +0200 |
---|---|---|
committer | Marco Cecchetti <mrcekets@gmail.com> | 2016-10-03 12:21:16 +0000 |
commit | 5fa79137b92417784c6123b88617bec6c7582d4e (patch) | |
tree | a10a3015b1afb301ecee9bf8232b58e565f8fe8f /sc/source/ui/view/tabview3.cxx | |
parent | 8ef20328866320cba9267027ea7284f8ec7edccf (diff) |
Calc: fixed bug in parallel cell editing
The background color by the wrong edit view was used causing a
segmentation fault.
Change-Id: Ife489989e382d6f4f905f0ca305928e64bbce588
Reviewed-on: https://gerrit.libreoffice.org/29415
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
Diffstat (limited to 'sc/source/ui/view/tabview3.cxx')
-rw-r--r-- | sc/source/ui/view/tabview3.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx index 0aaaa6dec6fb..c8774e5c3152 100644 --- a/sc/source/ui/view/tabview3.cxx +++ b/sc/source/ui/view/tabview3.cxx @@ -1926,7 +1926,7 @@ private: {} void SetEditView(EditView* pOtherEditView) { mpOtherEditView = pOtherEditView; } void SetWindow(ScGridWindow* pWindow) { mpWindow = pWindow; } - bool operator() (EditView* pView) + bool operator() (const EditView* pView) const { return ( pView != nullptr && pView->GetWindow() == mpWindow @@ -1958,7 +1958,7 @@ private: maSameEditViewChecker.SetEditView(mpOtherEditView); for (int i = 0; i < 4; ++i) { - (this->*fHandler)(mpGridWin[i]); + (this->*fHandler)(mpGridWin[i].get()); } } } |