This is simple! Make sure that either there’s closed off contour surrounding your painting space (using pen Tool) or start filling from intersection point inside (e.g.: within two lines intersecting each other).