lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [lucenenet] 07/09: Fix duplicate FragNum value on Highlight.TextFragment
Date Thu, 30 Jan 2020 08:15:56 GMT
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit f1c1629d627bcbe5546bc43a5c7623439bce391e
Author: Gustavo Segovia <gustavo.segovia@ti8m.ch>
AuthorDate: Wed Jan 29 10:57:38 2020 +0100

    Fix duplicate FragNum value on Highlight.TextFragment
---
 src/Lucene.Net.Highlighter/Highlight/TextFragment.cs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/Lucene.Net.Highlighter/Highlight/TextFragment.cs b/src/Lucene.Net.Highlighter/Highlight/TextFragment.cs
index d4a97ad..3edd11e 100644
--- a/src/Lucene.Net.Highlighter/Highlight/TextFragment.cs
+++ b/src/Lucene.Net.Highlighter/Highlight/TextFragment.cs
@@ -50,7 +50,11 @@ namespace Lucene.Net.Search.Highlight
         /// <summary>
         /// the fragment sequence number
         /// </summary>
-        public virtual int FragNum { get; protected internal set; }
+        public virtual int FragNum
+        {
+	        get { return fragNum; }
+	        protected internal set { fragNum = value; }
+        }
 
         /// <param name="frag2">Fragment to be merged into this one</param>
         public virtual void Merge(TextFragment frag2)


Mime
View raw message