summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2013-11-06 15:56:46 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-11-06 16:53:55 +0100
commite2790597d9cd534321bf95cb72dcad13e405cc47 (patch)
treed5d70bf25b85e82867e295dfbd842be4d1ef3bb1 /sw
parent3ebfef72037f9b4e33e9ca77fae0d03706ef5d83 (diff)
MSWordStyles::GetSwFmt: be explicit about what format to return
Change-Id: Ib8afdc757c30ca1571d8d7ec7145b749952edbca
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/wrtww8.hxx2
-rw-r--r--sw/source/filter/ww8/ww8atr.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/wrtww8.hxx b/sw/source/filter/ww8/wrtww8.hxx
index 5944cfe05101..09db650e1120 100644
--- a/sw/source/filter/ww8/wrtww8.hxx
+++ b/sw/source/filter/ww8/wrtww8.hxx
@@ -1558,7 +1558,7 @@ public:
/// Get styleId of the nId-th style (nId is its position in pFmtA).
OString GetStyleId(sal_uInt16 nId) const;
- const SwFmt* GetSwFmt() const { return (*pFmtA); }
+ const SwFmt* GetSwFmt(sal_uInt16 nId) const { return pFmtA[nId]; }
};
sal_Int16 GetWordFirstLineOffset(const SwNumFmt &rFmt);
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index 56d32c2800ef..b0630a8b6709 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -3665,7 +3665,7 @@ void WW8AttributeOutput::SectionBreak( sal_uInt8 nC, const WW8_SepInfo* /*pSecti
sal_uInt32 AttributeOutputBase::GridCharacterPitch( const SwTextGridItem& rGrid ) const
{
MSWordStyles * pStyles = GetExport().pStyles;
- const SwFmt * pSwFmt = pStyles->GetSwFmt();
+ const SwFmt * pSwFmt = pStyles->GetSwFmt(0);
sal_uInt32 nPageCharSize = 0;