Fixed text selection on PDF chart
Added check to cutoff selection