diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-12-07 12:52:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-12-07 12:55:18 +0000 |
commit | d4ca0036d723963b1874901f7185072a70789a99 (patch) | |
tree | 906eb7019d687a8352deac43142a972847d31720 /sw | |
parent | 01cd24df1ec7eaa53e9e2156d4d6890a7cc5996a (diff) |
eEscape can never be FN_SET_SUPER_SCRIPT
orthogonal enum and slot id things
If it was supposed to be if(eEscape == SVX_ESCAPEMENT_SUPERSCRIPT) then setting
superscript would instead sets subscript. Seeing as this is wrong since day 0
and the code should never goes into that branch I reckon its a forgotten
remnant from before superscript was implemented as it is now and its better to
remove the code entirely
Change-Id: I73010cf9428c96dfc75033c138694c5781a73c50
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/shells/txtattr.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sw/source/ui/shells/txtattr.cxx b/sw/source/ui/shells/txtattr.cxx index a746419b4448..6802fe54f3ed 100644 --- a/sw/source/ui/shells/txtattr.cxx +++ b/sw/source/ui/shells/txtattr.cxx @@ -123,11 +123,6 @@ void SwTextShell::ExecCharAttr(SfxRequest &rReq) aEscape.GetEsc() = DFLT_ESC_AUTO_SUPER; else if(eEscape == SVX_ESCAPEMENT_SUBSCRIPT) aEscape.GetEsc() = DFLT_ESC_AUTO_SUB; - if(eState != STATE_OFF ) - { - if(eEscape == FN_SET_SUPER_SCRIPT) - aEscape.GetEsc() *= -1; - } rSh.SetAttr( aEscape ); rReq.AppendItem( aEscape ); rReq.Done(); |