summaryrefslogtreecommitdiff
path: root/modules/core/os_snline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/os_snline.cpp')
-rw-r--r--modules/core/os_snline.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/core/os_snline.cpp b/modules/core/os_snline.cpp
index d6a0d8844..fb83f5e52 100644
--- a/modules/core/os_snline.cpp
+++ b/modules/core/os_snline.cpp
@@ -35,6 +35,9 @@ class SNLineDelCallback : public NumberList
void HandleNumber(unsigned Number)
{
+ if (!Number)
+ return;
+
XLine *x = SNLine->GetEntry(Number - 1);
if (!x)
@@ -68,6 +71,9 @@ class SNLineListCallback : public NumberList
virtual void HandleNumber(unsigned Number)
{
+ if (!Number)
+ return;
+
XLine *x = SNLine->GetEntry(Number - 1);
if (!x)
@@ -97,6 +103,9 @@ class SNLineViewCallback : public SNLineListCallback
void HandleNumber(unsigned Number)
{
+ if (!Number)
+ return;
+
XLine *x = SNLine->GetEntry(Number - 1);
if (!x)