Improved compatibility with Sankore 1.30 text format.

Improved performance of loading text from old format.
preferencesAboutTextFull
Aleksei Kanash 12 years ago
parent 13163fef30
commit 61626ecd28
  1. 6
      src/adaptors/UBSvgSubsetAdaptor.cpp
  2. 6
      src/domain/UBGraphicsTextItemDelegate.cpp

@ -2769,6 +2769,12 @@ UBGraphicsTextItem* UBSvgSubsetAdaptor::UBSvgSubsetReader::textItemFromSvg()
} }
} }
QTextCursor curCursor = textItem->textCursor();
QTextCharFormat format;
format.setFont(font);
curCursor.mergeCharFormat(format);
textItem->setTextCursor(curCursor);
textItem->setFont(font); textItem->setFont(font);
QStringRef fill = mXmlReader.attributes().value("color"); QStringRef fill = mXmlReader.attributes().value("color");

@ -322,6 +322,12 @@ void UBGraphicsTextItemDelegate::positionHandles()
void UBGraphicsTextItemDelegate::ChangeTextSize(qreal factor, textChangeMode changeMode) void UBGraphicsTextItemDelegate::ChangeTextSize(qreal factor, textChangeMode changeMode)
{ {
if (scaleSize == changeMode)
{
if (1 == factor)
return;
}
else
if (0 == factor) if (0 == factor)
return; return;

Loading…
Cancel
Save