summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2011-03-01 14:05:40 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-12-04 07:17:07 +0000
commit51ab4a0979895d03711f4b7da58365185aec08ad (patch)
tree4f6b344afb83b2d6dc41095e2da60e87ac37b38a /sc/source/ui/app
parentcad7570522e1822810a876fc6aa9ad9c5aa277b5 (diff)
calc66: #i114511# don't count cursor movement or clipboard copy
as modification when editing a cell Conflicts: sc/source/ui/app/inputhdl.cxx sc/source/ui/inc/inputhdl.hxx sc/source/ui/view/editsh.cxx
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/inputhdl.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 172dd54ce03c..dc4621aebe66 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -2185,7 +2185,7 @@ bool ScInputHandler::DataChanging( sal_Unicode cTyped, bool bFromCommand )
return false;
}
-void ScInputHandler::DataChanged( bool bFromTopNotify )
+void ScInputHandler::DataChanged( bool bFromTopNotify, bool bSetModified )
{
ImplCreateEditEngine();
@@ -2204,7 +2204,8 @@ void ScInputHandler::DataChanged( bool bFromTopNotify )
pTopView->ShowCursor();
}
- bModified = true;
+ if (bSetModified)
+ bModified = true;
bSelIsRef = false;
if ( pRangeFindList && !bInRangeUpdate )
@@ -3324,7 +3325,9 @@ bool ScInputHandler::KeyInput( const KeyEvent& rKEvt, bool bStartEdit /* = false
}
}
- DataChanged(); // ruft auch UpdateParenthesis()
+ // #i114511# don't count cursor keys as modification
+ sal_Bool bSetModified = !bCursorKey;
+ DataChanged(sal_False, bSetModified); // also calls UpdateParenthesis()
InvalidateAttribs(); //! in DataChanged ?
}
}