fix for #1235

Fix for #1235, legend box not taking points into account.