diff options
Diffstat (limited to 'xfa/fxfa/app/cxfa_texttabstopscontext.h')
-rw-r--r-- | xfa/fxfa/app/cxfa_texttabstopscontext.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/xfa/fxfa/app/cxfa_texttabstopscontext.h b/xfa/fxfa/app/cxfa_texttabstopscontext.h index 64b83a4421..9be10dd61d 100644 --- a/xfa/fxfa/app/cxfa_texttabstopscontext.h +++ b/xfa/fxfa/app/cxfa_texttabstopscontext.h @@ -7,11 +7,17 @@ #ifndef XFA_FXFA_APP_CXFA_TEXTTABSTOPSCONTEXT_H_ #define XFA_FXFA_APP_CXFA_TEXTTABSTOPSCONTEXT_H_ +#include <vector> + #include "core/fxcrt/fx_basic.h" struct XFA_TABSTOPS { uint32_t dwAlign; float fTabstops; + + bool operator<(const XFA_TABSTOPS& that) const { + return fTabstops < that.fTabstops; + } }; class CXFA_TextTabstopsContext { @@ -23,12 +29,11 @@ class CXFA_TextTabstopsContext { void RemoveAll(); void Reset(); - CFX_ArrayTemplate<XFA_TABSTOPS> m_tabstops; - int32_t m_iTabCount; int32_t m_iTabIndex; bool m_bTabstops; float m_fTabWidth; float m_fLeft; + std::vector<XFA_TABSTOPS> m_tabstops; }; #endif // XFA_FXFA_APP_CXFA_TEXTTABSTOPSCONTEXT_H_ |