|
@@ -1,6 +1,7 @@
|
|
# -*- coding: utf-8 -*-
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
import functools
|
|
import functools
|
|
|
|
+import html
|
|
import math
|
|
import math
|
|
import os
|
|
import os
|
|
import os.path as osp
|
|
import os.path as osp
|
|
@@ -1076,7 +1077,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
if shape.group_id is None:
|
|
if shape.group_id is None:
|
|
item.setText(
|
|
item.setText(
|
|
'{} <font color="#{:02x}{:02x}{:02x}">●</font>'.format(
|
|
'{} <font color="#{:02x}{:02x}{:02x}">●</font>'.format(
|
|
- shape.label, *shape.fill_color.getRgb()[:3]
|
|
|
|
|
|
+ html.escape(shape.label), *shape.fill_color.getRgb()[:3]
|
|
)
|
|
)
|
|
)
|
|
)
|
|
else:
|
|
else:
|
|
@@ -1147,7 +1148,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
self._update_shape_color(shape)
|
|
self._update_shape_color(shape)
|
|
label_list_item.setText(
|
|
label_list_item.setText(
|
|
'{} <font color="#{:02x}{:02x}{:02x}">●</font>'.format(
|
|
'{} <font color="#{:02x}{:02x}{:02x}">●</font>'.format(
|
|
- text, *shape.fill_color.getRgb()[:3]
|
|
|
|
|
|
+ html.escape(text), *shape.fill_color.getRgb()[:3]
|
|
)
|
|
)
|
|
)
|
|
)
|
|
|
|
|