Ver código fonte

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

master
MadBoy_cp 14 anos atrás
pai
commit
b3946661dd
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      DocX/FormattedText.cs

+ 1
- 1
DocX/FormattedText.cs Ver arquivo

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;

Carregando…
Cancelar
Salvar