summaryrefslogtreecommitdiff
path: root/sw/source/uibase/wrtsh
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-11-04 22:05:52 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2020-11-05 06:55:34 +0100
commit12eac5bcbc9b71bf00cb88b918988826229cca35 (patch)
tree3c1782ecb0789c4ec8ef844d9f7fd10d82b53dd5 /sw/source/uibase/wrtsh
parent83b73e8c885bf74b1f06e405f671dd4768fe1005 (diff)
tdf#137532: do not reset attributes deleting selection
Regression from 6abed0ea006f3616e40faf2ae782cf64f8ac2914 While at it, extend unittest for tdf#79717 to test another regression from the same commit I found while testing the patch: type 'a', type bold 'b', select both characters, type 'c' -> it should be bold Change-Id: I5b0b8ce4bfdfb4d52051e25c366827d7b594bb1a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105316 Tested-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index be6eb5cfb897..8251a9978142 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -245,13 +245,6 @@ void SwWrtShell::Insert( const OUString &rStr )
SwPaM aPaM(pEnd->nNode.GetNode(), pEnd->nContent.GetIndex() - rStr.getLength(),
pEnd->nNode.GetNode(), pEnd->nContent.GetIndex());
- o3tl::sorted_vector<sal_uInt16> aAttribs;
- for (sal_uInt16 i = RES_CHRATR_BEGIN; i < RES_CHRATR_END; ++i)
- if (i != sal_uInt16(RES_CHRATR_RSID))
- aAttribs.insert(i);
- aAttribs.insert(RES_TXTATR_CHARFMT);
- ResetAttr(aAttribs, &aPaM);
-
SetAttrSet(aCharAttrSet, SetAttrMode::DEFAULT, &aPaM);
}