Clicking on empty enabled multiline editbox causes an access violation

Create issue
Issue #304 resolved
Former user created an issue

Automatic migration. Original reporter: "fedyakin"

getTextIndexFromPosition assumes that the editbox is not empty. This invariant is no longer true because the constructor doesn't (can't it appears) set the initial value of the editbox.

A simple workaround for the moment is to set the text in the layout file, or disable read-only editboxes.

Reproducibility: always

Additional information: The relevant portion of the callstack is: CEGUI::MultiLineEditbox::getTextIndexFromPosition(const CEGUI::Vector2 & pt) Line 605 CEGUI::MultiLineEditbox::onMouseButtonDown(CEGUI::MouseEventArgs & e) Line 1100 CEGUI::System::injectMouseButtonDown(CEGUI::MouseButton button) Line 793

Comments (2)

  1. Log in to comment