# Possible bug in GetLineOnALine

**URL:** <https://community.thinkgeo.com/t/possible-bug-in-getlineonaline/2273>\
**Category:** WinForms\
**Created:** [July 10, 2013, 12:54pm UTC](https://community.thinkgeo.com/t/possible-bug-in-getlineonaline/2273 "2013-07-10T12:54:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven1](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/steven1/32/18983_2.png) [@Steven1](https://community.thinkgeo.com/u/Steven1)\
**Post date:** [July 10, 2013, 12:54pm UTC](https://community.thinkgeo.com/t/possible-bug-in-getlineonaline/2273/1 "2013-07-10T12:54:49Z")

</div>

Hi&nbsp;Guys,  
  
  
  
I’m&nbsp;using&nbsp;MS&nbsp;Desktop&nbsp;v7.0.0.0.  
  
  
  
When&nbsp;I&nbsp;use&nbsp;GetLineOnALine&nbsp;to&nbsp;split&nbsp;an&nbsp;existing&nbsp;LineShape&nbsp;into&nbsp;shorter&nbsp;lines,&nbsp;the&nbsp;last&nbsp;LineShape&nbsp;returned&nbsp;is&nbsp;incorrect.&nbsp;The&nbsp;problem&nbsp;occurs&nbsp;when&nbsp;the&nbsp;function&nbsp;tries&nbsp;to&nbsp;obtain&nbsp;a&nbsp;line&nbsp;that&nbsp;starts&nbsp;at&nbsp;an&nbsp;existing&nbsp;vertex&nbsp;on&nbsp;the&nbsp;line&nbsp;and&nbsp;goes&nbsp;to&nbsp;the&nbsp;last&nbsp;vertex&nbsp;in&nbsp;the&nbsp;line.&nbsp;The&nbsp;part&nbsp;of&nbsp;the&nbsp;returned&nbsp;line&nbsp;between&nbsp;the&nbsp;last&nbsp;to&nbsp;vertices&nbsp;does&nbsp;not&nbsp;line&nbsp;up&nbsp;with&nbsp;the&nbsp;original&nbsp;line.  
  
  
  
It’s&nbsp;always&nbsp;easier&nbsp;to&nbsp;see&nbsp;on&nbsp;a&nbsp;sample&nbsp;so&nbsp;I&nbsp;have&nbsp;attached&nbsp;a&nbsp;sample&nbsp;project&nbsp;to&nbsp;demonstrate&nbsp;the&nbsp;issue.  
  
  
  
Thanks!  
  
  
  
Steve  
  
[GetLineOnALine\_Demo.zip](https://community.thinkgeo.com/uploads/default/original/1X/27722e086af55ce93eadb23d9572d24149f383df.zip) (22.2 KB)

---

<div class="post-metadata">

**Author:** ![Summer1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Summer1](https://community.thinkgeo.com/u/Summer1)\
**Post date:** [July 10, 2013, 10:09pm UTC](https://community.thinkgeo.com/t/possible-bug-in-getlineonaline/2273/2 "2013-07-10T22:09:00Z")

</div>

Hi&nbsp;Steven,&nbsp;

Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;sample,&nbsp;but&nbsp;I&nbsp;am&nbsp;sorry&nbsp;to&nbsp;say&nbsp;that&nbsp;with&nbsp;the&nbsp;newest&nbsp;dlls&nbsp;7.0.31.0,&nbsp;the&nbsp;red&nbsp;line&nbsp;actually&nbsp;could&nbsp;totally&nbsp;cover&nbsp;the&nbsp;original&nbsp;line,&nbsp;following&nbsp;is&nbsp;the&nbsp;pictures&nbsp;of&nbsp;our&nbsp;test.  
  
Original:&nbsp;

 ![](https://community.thinkgeo.com/uploads/default/original/2X/6/6b99dd5031f65abf9dc5ba14b6ecc2de783f6b3a.PNG)  
  
New:  
  
 ![](https://community.thinkgeo.com/uploads/default/original/2X/4/4b73c5c16c9cfb17472b71fd9abd1ade63e500cc.PNG)  
  
Would&nbsp;you&nbsp;please&nbsp;get&nbsp;the&nbsp;latest&nbsp;version&nbsp;7.0.31.0&nbsp;and&nbsp;try&nbsp;it&nbsp;again?

if&nbsp;you&nbsp;have&nbsp;any&nbsp;more&nbsp;question&nbsp;,&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know.

Best&nbsp;Regards

Summer

---

<div class="post-metadata">

**Author:** ![Steven1](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/steven1/32/18983_2.png) [@Steven1](https://community.thinkgeo.com/u/Steven1)\
**Post date:** [July 11, 2013, 7:24am UTC](https://community.thinkgeo.com/t/possible-bug-in-getlineonaline/2273/3 "2013-07-11T07:24:07Z")

</div>

Hi&nbsp;Summer,  
  
  
  
Thanks&nbsp;for&nbsp;your&nbsp;reply.&nbsp;We&nbsp;are&nbsp;trying&nbsp;to&nbsp;stay&nbsp;with&nbsp;the&nbsp;more&nbsp;stable&nbsp;production&nbsp;builds.&nbsp;I&nbsp;tried&nbsp;with&nbsp;7.0.0.30&nbsp;and&nbsp;it&nbsp;works&nbsp;fine.  
  
  
  
Thanks!  
  
  
  
Steve

---

<div class="post-metadata">

**Author:** ![Summer1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Summer1](https://community.thinkgeo.com/u/Summer1)\
**Post date:** [July 12, 2013, 2:00am UTC](https://community.thinkgeo.com/t/possible-bug-in-getlineonaline/2273/4 "2013-07-12T02:00:44Z")

</div>

Hi&nbsp;Steven,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Great&nbsp;to&nbsp;hear&nbsp;it&nbsp;helped,&nbsp;if&nbsp;you&nbsp;have&nbsp;any&nbsp;more&nbsp;question,&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Best&nbsp;Regards&nbsp;  
&nbsp;&nbsp;  
&nbsp;Summer
