diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-11-30 15:22:30 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-11-30 15:27:25 +0100 |
commit | 424d17e62e0d670aa79a890f85bb98c19169f9f5 (patch) | |
tree | 49c82966c1465065da435d6f6b6255cf3c96675c /starmath | |
parent | 579feb4d841ea80de699f4124378d0701034833e (diff) |
ScTabViewShell::InnerResizePixel must not mark document as modified...
...when merely toggling the edit mode of a Calc document embedded in another
document (via "Insert - Object - OLE Object... - LibreOffice 5.4 Spreadsheet").
Interestingly, none of the other document kinds seem to have this problem.
(Maybe it's even unhelpful that ScTabViewShell::InnerResizePixel calls
SetDocumentModified() at all?) Anyway, pass this inplaceEditModeChange
information down there.
Change-Id: Iffb24b068419e3608c9f4b5e9645e44e1716aafe
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/view.hxx | 2 | ||||
-rw-r--r-- | starmath/source/view.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index e6bf3238bec5..a1a3b4964f13 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -263,7 +263,7 @@ protected: virtual void Deactivate(bool IsMDIActivate) override; virtual void Activate(bool IsMDIActivate) override; virtual void AdjustPosSizePixel(const Point &rPos, const Size &rSize) override; - virtual void InnerResizePixel(const Point &rOfs, const Size &rSize) override; + virtual void InnerResizePixel(const Point &rOfs, const Size &rSize, bool inplaceEditModeChange) override; virtual void OuterResizePixel(const Point &rOfs, const Size &rSize) override; virtual void QueryObjAreaPixel( Rectangle& rRect ) const override; virtual void SetZoomFactor( const Fraction &rX, const Fraction &rY ) override; diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 2456fb2ec1dc..00bae3b48c3f 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -892,7 +892,7 @@ void SmViewShell::AdjustPosSizePixel(const Point &rPos, const Size &rSize) aGraphic->SetPosSizePixel(rPos, rSize); } -void SmViewShell::InnerResizePixel(const Point &rOfs, const Size &rSize) +void SmViewShell::InnerResizePixel(const Point &rOfs, const Size &rSize, bool) { Size aObjSize = GetObjectShell()->GetVisArea().GetSize(); if ( aObjSize.Width() > 0 && aObjSize.Height() > 0 ) |