[Libreoffice-commits] core.git: sw/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jul 19 21:40:21 UTC 2021
sw/source/core/unocore/unostyle.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a541e611127f01f0aa96361df589fc588b2687f1
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Mon Jul 19 22:29:29 2021 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Mon Jul 19 23:39:47 2021 +0200
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 at collabora.com>
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;
}
More information about the Libreoffice-commits
mailing list