File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 32
32
#include < vcl/settings.hxx>
33
33
#include < o3tl/unit_conversion.hxx>
34
34
#include < osl/diagnose.h>
35
+ #include < tools/weakbase.hxx>
35
36
36
37
#include < LibreOfficeKit/LibreOfficeKitEnums.h>
37
38
#include < comphelper/lok.hxx>
@@ -1406,15 +1407,15 @@ namespace
1406
1407
class ScLOKProxyObjectContact final : public sdr::contact::ObjectContactOfPageView
1407
1408
{
1408
1409
private:
1409
- ScDrawView* mpScDrawView ;
1410
+ tools::WeakReference< ScDrawView> m_xScDrawView ;
1410
1411
1411
1412
public:
1412
1413
explicit ScLOKProxyObjectContact (
1413
1414
ScDrawView* pDrawView,
1414
1415
SdrPageWindow& rPageWindow,
1415
1416
const char * pDebugName) :
1416
1417
ObjectContactOfPageView(rPageWindow, pDebugName),
1417
- mpScDrawView (pDrawView)
1418
+ m_xScDrawView (pDrawView)
1418
1419
{
1419
1420
}
1420
1421
@@ -1424,10 +1425,11 @@ namespace
1424
1425
basegfx::B2DVector& rTarget,
1425
1426
const sdr::contact::ViewObjectContact& rClient) const override
1426
1427
{
1427
- if (!mpScDrawView)
1428
+ ScDrawView* pScDrawView = m_xScDrawView.get ();
1429
+ if (!pScDrawView)
1428
1430
return ;
1429
1431
1430
- SdrPageView* pPageView (mpScDrawView ->GetSdrPageView ());
1432
+ SdrPageView* pPageView (pScDrawView ->GetSdrPageView ());
1431
1433
if (!pPageView)
1432
1434
return ;
1433
1435
You can’t perform that action at this time.
0 commit comments