First time here? Check out the FAQ!
Thanks, nice code, you could maybe just add that it only works with DIST_LABEL_PIXEL activated.
DIST_LABEL_PIXEL