Index: gc_core/py/lang_core/gc_engine.py ================================================================== --- gc_core/py/lang_core/gc_engine.py +++ gc_core/py/lang_core/gc_engine.py @@ -660,17 +660,16 @@ xErr.nErrorType = PROOFREADING xErr.aRuleIdentifier = sRuleId xErr.aShortComment = sMessage # sMessage.split("|")[0] # in context menu xErr.aFullComment = sMessage # sMessage.split("|")[-1] # in dialog xErr.aSuggestions = tuple(lSugg) - #xPropertyLineType = PropertyValue(Name="LineType", Value=5) # DASH or WAVE - xPropertyLineColor = PropertyValue(Name="LineColor", Value=_dOptionsColors.get(sOption, 33023)) + # Properties + lProperties = [ PropertyValue(Name="LineColor", Value=_dOptionsColors.get(sOption, 33023)) ] + lProperties.append(PropertyValue(Name="LineType", Value=10)) # WAVE: 10, DASH: 5, BOLD: 12, BOLDWAVE: 18 https://api.libreoffice.org/docs/idl/ref/FontUnderline_8idl.html if sURL: - xPropertyURL = PropertyValue(Name="FullCommentURL", Value=sURL) - xErr.aProperties = (xPropertyURL, xPropertyLineColor) - else: - xErr.aProperties = (xPropertyLineColor,) + lProperties.append(PropertyValue(Name="FullCommentURL", Value=sURL)) + xErr.aProperties = lProperties return xErr def _createErrorAsDict (self, nStart, nEnd, sLineId, sRuleId, sOption, sMessage, lSugg, sURL, bContext): dErr = { "nStart": nStart,