<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I'd like to raise this on the dev list since it seems to be a bug. Ticket: <a href="https://issues.qgis.org/issues/18384">https://issues.qgis.org/issues/18384</a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Here is the basic issue as Michel observed it:</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 6, 2018 at 2:47 PM, Michel Stuyts <span dir="ltr"><<a href="mailto:michel.stuyts@edegem.be" target="_blank">michel.stuyts@edegem.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">When creating a style for a polygon layer I noticed a difference between QGIS 2.99 (Windows standalone installer) and QGIS 3.0 (OSGeo4W) when I use segments_to_lines & @geometry_part_num.<br>
  *   I created a polygon layer and added some polygons.<br>
  *   Then I started editing the layer style:<br>
     *   I added a Geometry generator as symbol layer to create a Linestring type that contains  segments_to_lines($geometry)<br>
     *   Then I changed the line type of the result to a "Marker line"<br>
     *   Then I changed the Symbol layer type of this "Marker line" to "Font marker"<br>
     *   Then I changed the "Data defined override" of the content of this font marker to @geometry_part_num<br>
     *   Then I changed the font size of the font marker<br>
The results are different in QGIS 2.99 and 3.0 (see images below). Is this a bug in 3.0 or is it an intentional change? The result in QGIS 2.18 is the same as in 2.99. The result in QGIS 3.1 is the same as in 3.0. <br></blockquote></div><br></div><div class="gmail_extra"><div class="gmail_default" style="font-size:small">​I've actually been able to reproduce 2.18 results in 3.x but only if @geometry_part_num was used in a different context besides the marker line as well.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Here's a screencast of what I think is pretty odd behavior: <a href="https://www.dropbox.com/s/cvyqeecpq0uis1j/QGIS%20Geometry%20Generator%20geometry_part_num.mp4?dl=0">https://www.dropbox.com/s/cvyqeecpq0uis1j/QGIS%20Geometry%20Generator%20geometry_part_num.mp4?dl=0</a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Took me a couple of hours to find out why @geometry_part_num behaved seemingly randomly.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Was this a purposeful change?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Regards,</div><div class="gmail_default" style="font-size:small">Anita</div><div class="gmail_default" style="font-size:small">​<br></div><br></div><div class="gmail_extra"><br></div></div>