Просмотр исходного кода

Fixed MagicText (differented formats were not returned properly, because FormattedText was always compared to itself). Fix provided by Carko

master
MadBoy_cp 14 лет назад
Родитель
Сommit
b3946661dd
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      DocX/FormattedText.cs

+ 1
- 1
DocX/FormattedText.cs Просмотреть файл

public int CompareTo(object obj) public int CompareTo(object obj)
{ {
FormattedText other = (FormattedText)obj; FormattedText other = (FormattedText)obj;
FormattedText tf = (FormattedText)obj;
FormattedText tf = this;
if (other.formatting == null || tf.formatting == null) if (other.formatting == null || tf.formatting == null)
return -1; return -1;

Загрузка…
Отмена
Сохранить