Fix bug when copy subrange of textRenderer