diff options
author | Oliver Specht <oliver.specht@cib.de> | 2016-02-26 10:40:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-05-13 12:56:05 +0100 |
commit | cda827958eefb636a4dbe57e1df7d21b5878171f (patch) | |
tree | 0ebe88cd54f4384cbcb768fa606e3f4c7728a4a4 /starmath | |
parent | c1ca17f916541ba127765a9f5392fabd761cd946 (diff) |
tdf#98088: prevent access to invalid sub node
Change-Id: I73bd77682bfb60474ba18ca85bc5d008c70a7f97
Reviewed-on: https://gerrit.libreoffice.org/22715
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 529e06a1b855ac83468230a15903aeafe1ac89a7)
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/node.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index a1847ef1db35..dc021cb6c06b 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -2066,7 +2066,8 @@ void SmFontNode::CreateTextFromNode(OUString &rText) default: break; } - GetSubNode(1)->CreateTextFromNode(rText); + if(GetNumSubNodes() > 1) + GetSubNode(1)->CreateTextFromNode(rText); } void SmFontNode::Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) |