Fix crash.
This commit is contained in:
parent
391a721d84
commit
7ea984f194
|
@ -1,3 +1,6 @@
|
||||||
|
# Valentina 0.7.49 (unreleased)
|
||||||
|
- Fix crash.
|
||||||
|
|
||||||
# Valentina 0.7.48 June 29, 2021
|
# Valentina 0.7.48 June 29, 2021
|
||||||
- [smart-pattern/valentina#129] Incorrect behavior of empty arc and elliptical arc.
|
- [smart-pattern/valentina#129] Incorrect behavior of empty arc and elliptical arc.
|
||||||
- Parsing formulas with not canonical math symbols.
|
- Parsing formulas with not canonical math symbols.
|
||||||
|
|
|
@ -125,6 +125,8 @@ void VGraphicsSimpleTextItem::paint(QPainter *painter, const QStyleOptionGraphic
|
||||||
void VGraphicsSimpleTextItem::setEnabled(bool enabled)
|
void VGraphicsSimpleTextItem::setEnabled(bool enabled)
|
||||||
{
|
{
|
||||||
QGraphicsSimpleTextItem::setEnabled(enabled);
|
QGraphicsSimpleTextItem::setEnabled(enabled);
|
||||||
|
if (this->scene())
|
||||||
|
{
|
||||||
const QPalette palet = this->scene()->palette();
|
const QPalette palet = this->scene()->palette();
|
||||||
if (enabled)
|
if (enabled)
|
||||||
{
|
{
|
||||||
|
@ -135,6 +137,7 @@ void VGraphicsSimpleTextItem::setEnabled(bool enabled)
|
||||||
setBrush(palet.brush(QPalette::Disabled, QPalette::Text));
|
setBrush(palet.brush(QPalette::Disabled, QPalette::Text));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VGraphicsSimpleTextItem::LabelSelectionType(const SelectionType &type)
|
void VGraphicsSimpleTextItem::LabelSelectionType(const SelectionType &type)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user