src/gui/text/qtextformat.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 33 3e2da88830cd
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
  3083         QTextFormat &f = formats.last();
  3083         QTextFormat &f = formats.last();
  3084         if (!f.d)
  3084         if (!f.d)
  3085             f.d = new QTextFormatPrivate;
  3085             f.d = new QTextFormatPrivate;
  3086         f.d->resolveFont(defaultFnt);
  3086         f.d->resolveFont(defaultFnt);
  3087 
  3087 
  3088         hashes.insert(hash, idx);
  3088         if (!hashes.contains(hash, idx))
       
  3089             hashes.insert(hash, idx);
  3089 
  3090 
  3090     } QT_CATCH(...) {
  3091     } QT_CATCH(...) {
  3091         formats.pop_back();
  3092         formats.pop_back();
  3092         QT_RETHROW;
  3093         QT_RETHROW;
  3093     }
  3094     }