Skip to content

Commit

Permalink
fix: 修复截图中添加字体后,再改变字体颜色,保存出来的字体颜色未正确修改
Browse files Browse the repository at this point in the history
Description: 修复截图中添加字体后,再改变字体颜色,保存出来的字体颜色未正确修改

Log: 修复截图中添加字体后,再改变字体颜色,保存出来的字体颜色未正确修改

Bug: https://pms.uniontech.com/bug-view-243845.html
  • Loading branch information
hundundadi authored and deepin-bot[bot] committed Feb 26, 2024
1 parent d46fb18 commit fa48297
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widgets/shapeswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ void ShapesWidget::updateSelectedShape(const QString &group,
} else if (group == "text" && m_selectedShape.type == group && key == "color_index") {
int tmpIndex = m_shapes[m_selectedOrder].index;
if (m_editMap.contains(tmpIndex)) {
m_selectedShape.colorIndex = index;
m_editMap.value(tmpIndex)->setColor(BaseUtils::colorIndexOf(index));
m_editMap.value(tmpIndex)->update();
}
Expand Down

0 comments on commit fa48297

Please sign in to comment.