You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/03/08 18:23:54 UTC
[18/26] lucenenet git commit: BUG:
Lucene.Net.Tests.Spatial.SpatialExample: Fixed string formatting issue to use
invariant culture during test setup.
BUG: Lucene.Net.Tests.Spatial.SpatialExample: Fixed string formatting issue to use invariant culture during test setup.
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/c232dea6
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/c232dea6
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/c232dea6
Branch: refs/heads/api-work
Commit: c232dea63cc0183df5e923ce8036e221ee4de746
Parents: 839a891
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Wed Mar 8 18:28:09 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Wed Mar 8 18:28:09 2017 +0700
----------------------------------------------------------------------
src/Lucene.Net.Tests.Spatial/SpatialExample.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c232dea6/src/Lucene.Net.Tests.Spatial/SpatialExample.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Spatial/SpatialExample.cs b/src/Lucene.Net.Tests.Spatial/SpatialExample.cs
index 49b9321..25bc0d5 100644
--- a/src/Lucene.Net.Tests.Spatial/SpatialExample.cs
+++ b/src/Lucene.Net.Tests.Spatial/SpatialExample.cs
@@ -125,7 +125,7 @@ namespace Lucene.Net.Spatial
//store it too; the format is up to you
// (assume point in this example)
IPoint pt = (IPoint)shape;
- doc.Add(new StoredField(strategy.FieldName, pt.X + " " + pt.Y));
+ doc.Add(new StoredField(strategy.FieldName, pt.X.ToString(CultureInfo.InvariantCulture) + " " + pt.Y.ToString(CultureInfo.InvariantCulture)));
}
return doc;