summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-05-04 23:45:24 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-05-05 11:10:18 -0400
commit146a73e243bb54085055271f08156e2cf5dbd3f2 (patch)
tree4da15a32959a77f0253fe22d484a96e318c8c60b /editeng/source
parent8f555e3be27768a7a9a80b5ce4cba95ea1cd2880 (diff)
Use UNO's field type values for the SvxFieldData class IDs too.
Change-Id: I Iae5abcd0936f176b0b8976b6ea50cfe3e18593b4
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/editeng/fieldupdater.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/editeng/source/editeng/fieldupdater.cxx b/editeng/source/editeng/fieldupdater.cxx
index 007844093144..40e997905431 100644
--- a/editeng/source/editeng/fieldupdater.cxx
+++ b/editeng/source/editeng/fieldupdater.cxx
@@ -30,6 +30,10 @@
#include "editeng/flditem.hxx"
#include "editobj2.hxx"
+#include <com/sun/star/text/textfield/Type.hpp>
+
+using namespace com::sun::star;
+
namespace editeng {
class FieldUpdaterImpl
@@ -57,7 +61,7 @@ public:
const SvxFieldItem* pFI = static_cast<const SvxFieldItem*>(pItem);
const SvxFieldData* pData = pFI->GetField();
- if (pData->GetClassId() != SVX_TABLEFIELD)
+ if (pData->GetClassId() != text::textfield::Type::TABLE)
// This is not a table field.
continue;