Fix virtual-keyboard not changing size, when the user changes the scaler while it is not visible.
svn-id: r47544
This commit is contained in:
parent
709bf1214c
commit
64491356b8
2 changed files with 4 additions and 2 deletions
|
@ -207,7 +207,7 @@ void VirtualKeyboard::switchMode(Mode *newMode) {
|
|||
_currentMode = newMode;
|
||||
}
|
||||
|
||||
void VirtualKeyboard::switchMode(const String& newMode) {
|
||||
void VirtualKeyboard::switchMode(const String &newMode) {
|
||||
if (!_modes.contains(newMode)) {
|
||||
warning("Keyboard mode '%s' unknown", newMode.c_str());
|
||||
} else {
|
||||
|
|
|
@ -247,10 +247,12 @@ bool XMLParser::closeKey() {
|
|||
}
|
||||
|
||||
bool XMLParser::parse() {
|
||||
|
||||
if (_stream == 0)
|
||||
return parserError("XML stream not ready for reading.");
|
||||
|
||||
// Make sure we are at the start of the stream.
|
||||
_stream->seek(0, SEEK_SET);
|
||||
|
||||
if (_XMLkeys == 0)
|
||||
buildLayout();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue