summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwplayout.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-09 14:59:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-09 14:59:21 +0000
commitda5e8ba393b8522a8f7501ebeb1e9a98d544a7ba (patch)
treec79a2c5334abbb63f8990143563c20bdb21861c9 /lotuswordpro/source/filter/lwplayout.hxx
parent80297dd0f21bfeaa9bae09cacfa29ab2eee64c09 (diff)
guard against styles based on themselves
which leads to stack exhaustion when queries, make m_BasedOnStyle private and replace it with a call to GetBasedOnStyle which checks that the base style is not itself Change-Id: I093546793755f8a3a6e8a3c23fb8565ad27b75da
Diffstat (limited to 'lotuswordpro/source/filter/lwplayout.hxx')
-rw-r--r--lotuswordpro/source/filter/lwplayout.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwplayout.hxx b/lotuswordpro/source/filter/lwplayout.hxx
index a5e8c264e9d1..1ed947404133 100644
--- a/lotuswordpro/source/filter/lwplayout.hxx
+++ b/lotuswordpro/source/filter/lwplayout.hxx
@@ -321,6 +321,8 @@ public:
protected:
void Read() override;
+private:
+ LwpObjectID m_BasedOnStyle;
protected:
enum
{
@@ -329,8 +331,7 @@ protected:
};
LwpObjectID m_Content;
- LwpObjectID m_BasedOnStyle;
-
+ rtl::Reference<LwpObject> GetBasedOnStyle();
LwpObjectID m_TabPiece;
LwpLayoutStyle* m_pStyleStuff;
LwpLayoutMisc* m_pMiscStuff;