summaryrefslogtreecommitdiff
path: root/sw/source/uibase/fldui/fldmgr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/fldui/fldmgr.cxx')
-rw-r--r--sw/source/uibase/fldui/fldmgr.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx
index 02cf4a75015a..a25ea0615ca4 100644
--- a/sw/source/uibase/fldui/fldmgr.cxx
+++ b/sw/source/uibase/fldui/fldmgr.cxx
@@ -72,7 +72,6 @@
#include <authfld.hxx>
#include <flddat.hxx>
#include <fldmgr.hxx>
-#include <crsskip.hxx>
#include <flddropdown.hxx>
#include <fldui.hrc>
#include <tox.hxx>
@@ -523,7 +522,7 @@ void SwFieldMgr::GetSubTypes(sal_uInt16 nTypeId, std::vector<OUString>& rToFill)
// determine format
// ACCESS over TYP_....
-sal_uInt16 SwFieldMgr::GetFormatCount(sal_uInt16 nTypeId, bool bIsText, bool bHtmlMode) const
+sal_uInt16 SwFieldMgr::GetFormatCount(sal_uInt16 nTypeId, bool bHtmlMode) const
{
OSL_ENSURE(nTypeId < TYP_END, "forbidden TypeId");
{
@@ -535,9 +534,6 @@ sal_uInt16 SwFieldMgr::GetFormatCount(sal_uInt16 nTypeId, bool bIsText, bool bHt
sal_uLong nStart = aSwFields[nPos].nFormatBegin;
sal_uLong nEnd = aSwFields[nPos].nFormatEnd;
- if (bIsText && nEnd - nStart >= 2)
- return 2;
-
if (nTypeId == TYP_FILENAMEFLD)
nEnd -= 2; // no range or template