diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-12-09 12:30:25 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2011-12-09 12:30:25 +0100 |
commit | 5318ddf2e6f0d4fc33831b503d80935497fe71e8 (patch) | |
tree | 02a852565650e9bc80f88ce0809f6c4c314f21c2 /sc | |
parent | e416813c323be69a869935e077d8666bd2375ac1 (diff) |
fixed Calc unit-test crashes
Wrong offset and count constants caused properties' string array out-of-bounds
access.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/viewopti.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/core/tool/viewopti.cxx b/sc/source/core/tool/viewopti.cxx index cf763b07ea83..c5e5c7b4e295 100644 --- a/sc/source/core/tool/viewopti.cxx +++ b/sc/source/core/tool/viewopti.cxx @@ -298,13 +298,13 @@ SfxPoolItem* ScTpViewItem::Clone( SfxItemPool * ) const #define SCLAYOUTOPT_GRIDCOLOR 1 #define SCLAYOUTOPT_PAGEBREAK 2 #define SCLAYOUTOPT_GUIDE 3 -#define SCLAYOUTOPT_COLROWHDR 6 -#define SCLAYOUTOPT_HORISCROLL 7 -#define SCLAYOUTOPT_VERTSCROLL 8 -#define SCLAYOUTOPT_SHEETTAB 9 -#define SCLAYOUTOPT_OUTLINE 10 -#define SCLAYOUTOPT_GRID_ONCOLOR 11 -#define SCLAYOUTOPT_COUNT 12 +#define SCLAYOUTOPT_COLROWHDR 4 +#define SCLAYOUTOPT_HORISCROLL 5 +#define SCLAYOUTOPT_VERTSCROLL 6 +#define SCLAYOUTOPT_SHEETTAB 7 +#define SCLAYOUTOPT_OUTLINE 8 +#define SCLAYOUTOPT_GRID_ONCOLOR 9 +#define SCLAYOUTOPT_COUNT 10 #define CFGPATH_DISPLAY "Office.Calc/Content/Display" |