summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/hdrcont.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-03-09 09:38:03 -0500
committerKohei Yoshida <kyoshida@novell.com>2010-03-09 09:38:03 -0500
commitb62a698b9c0795df73e720b4168e26c14939226d (patch)
tree180130e74aa1ab1e4c51f82d2c75d019b95e76cf /sc/source/ui/view/hdrcont.cxx
parent6229342f643792e94d687880165613a86175ae58 (diff)
kohei04: tab to whitespace & BOOL to bool etc to make MSVC compiler happy.
Diffstat (limited to 'sc/source/ui/view/hdrcont.cxx')
-rw-r--r--sc/source/ui/view/hdrcont.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sc/source/ui/view/hdrcont.cxx b/sc/source/ui/view/hdrcont.cxx
index b7760197a377..5fd95f609c2c 100644
--- a/sc/source/ui/view/hdrcont.cxx
+++ b/sc/source/ui/view/hdrcont.cxx
@@ -672,11 +672,17 @@ bool ScHeaderControl::IsSelectionAllowed(SCCOLROW nPos) const
// This sheet is protected. Check if a context menu is allowed on this cell.
bool bCellsProtected = false;
if (bVertical)
+ {
// row header
- bCellsProtected = pDoc->HasAttrib(0, nPos, nTab, MAXCOL, nPos, nTab, HASATTR_PROTECTED);
+ SCROW nRPos = static_cast<SCROW>(nPos);
+ bCellsProtected = pDoc->HasAttrib(0, nRPos, nTab, MAXCOL, nRPos, nTab, HASATTR_PROTECTED);
+ }
else
+ {
// column header
- bCellsProtected = pDoc->HasAttrib(nPos, 0, nTab, nPos, MAXROW, nTab, HASATTR_PROTECTED);
+ SCCOL nCPos = static_cast<SCCOL>(nPos);
+ bCellsProtected = pDoc->HasAttrib(nCPos, 0, nTab, nCPos, MAXROW, nTab, HASATTR_PROTECTED);
+ }
bool bSelProtected = pProtect->isOptionEnabled(ScTableProtection::SELECT_LOCKED_CELLS);
bool bSelUnprotected = pProtect->isOptionEnabled(ScTableProtection::SELECT_UNLOCKED_CELLS);