summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unostyle.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-07-19 22:29:29 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-07-19 23:39:47 +0200
commita541e611127f01f0aa96361df589fc588b2687f1 (patch)
treee1fec86c08666c61803b504176a93b58159f2e95 /sw/source/core/unocore/unostyle.cxx
parente65f6e87b1eb97a4a639c37fbe49997d18fd994a (diff)
Using empty which range makes no sense here
This is this way since initial implementation in commit 6cd37e708c588c2a0a1a31e1ae4d35e11450fea4; still, this makes no sense, since this means that the property set is unused, and nothing gets stored in the set. Let's use a 1-element range here, matching the property set returned by corresponding GetPropertySet call. Change-Id: I6107e5144913a1776a79cdceb22c537629d7115c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119182 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/core/unocore/unostyle.cxx')
-rw-r--r--sw/source/core/unocore/unostyle.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index fd18bb1a9d5f..3012637bbe4c 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -3542,7 +3542,7 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle(
}
case IStyleAccess::AUTO_STYLE_RUBY:
{
- // pRange = aTextNodeSetRange;
+ pRange = WhichRangesContainer(RES_TXTATR_CJK_RUBY, RES_TXTATR_CJK_RUBY);
pPropSet = aSwMapProvider.GetPropertySet(PROPERTY_MAP_RUBY_AUTO_STYLE);
break;
}