diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-16 13:20:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-20 10:45:55 +0000 |
commit | 5865af093c9698c7358e6f3b8ae37cd2cb1cfaff (patch) | |
tree | 62dfbd64fa99f3aa05109c0c8bf69b67b36a322d /svx | |
parent | b18e1bc61ccba9d0c74274e2fe45b2b422c601cf (diff) |
tdf#102223 EDITING Deleting all content from a cell changes font formatting
The code in question was added in:
commit 48ea88c8c8194d65105aa22108583369575926e1
Author: Rüdiger Timm <rt@openoffice.org>
Date: Wed Mar 12 09:02:20 2008 +0000
INTEGRATION: CWS impresstables2 (1.1.2); FILE ADDED
So hard to tell what its original purpose was. Probably trying to clean
up the model, but had the unintended side effect of removing styles.
Change-Id: I7d774706c22cf72e914b356df9bbc5947ee2c1a5
Reviewed-on: https://gerrit.libreoffice.org/28950
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/table/svdotable.cxx | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx index e4e3087010cc..34b64cd1db7a 100644 --- a/svx/source/table/svdotable.cxx +++ b/svx/source/table/svdotable.cxx @@ -1823,25 +1823,11 @@ void SdrTableObj::EndTextEdit(SdrOutliner& rOutl) if(p1stPara) { - if(nParaAnz == 1) - { - // if its only one paragraph, check if it is empty - OUString aStr(rOutl.GetText(p1stPara)); - if (aStr.isEmpty()) - { - // gotcha! - nParaAnz = 0; - } - } - // to remove the grey field background rOutl.UpdateFields(); - if(nParaAnz != 0) - { - // create new text object - pNewText = rOutl.CreateParaObject( 0, nParaAnz ); - } + // create new text object + pNewText = rOutl.CreateParaObject( 0, nParaAnz ); } SetOutlinerParaObject(pNewText); } |