summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-12-07 13:03:59 +0100
committerEike Rathke <erack@redhat.com>2017-12-07 15:34:53 +0100
commit454d75e907b9e9e478f81388374ae09fb55f5c1c (patch)
treea7c9f56a2b2b03f1b68e27002eb5d95ac1566f5b
parentd21267b50321749e894f4cb792b14b832ccbd7a3 (diff)
Assert pDrawView even to spot bad usage
Change-Id: Id33df9548085f8ab5cea6866664b4bed7c779c63 Reviewed-on: https://gerrit.libreoffice.org/46023 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r--sc/source/ui/view/notemark.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/view/notemark.cxx b/sc/source/ui/view/notemark.cxx
index b92e7c278b70..47c9db0dacf5 100644
--- a/sc/source/ui/view/notemark.cxx
+++ b/sc/source/ui/view/notemark.cxx
@@ -108,6 +108,8 @@ IMPL_LINK_NOARG(ScNoteMarker, TimeHdl, Timer *, void)
// Need to include grid offset: GetCurrentBoundRect is removing it
// but we need to know actual rect position
aRect += mxObject->GetGridOffset();
+
+ assert(pDrawView && "this ended up with a wrong rectangle");
}
// Insert page so that the model recognise it and also deleted