aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/aoapplication.h2
-rw-r--r--src/courtroom.cpp2
-rw-r--r--src/text_file_functions.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/include/aoapplication.h b/include/aoapplication.h
index 9a070d46..cd9f736b 100644
--- a/include/aoapplication.h
+++ b/include/aoapplication.h
@@ -308,7 +308,7 @@ public:
// Returns the dimensions of widget with specified identifier from p_file
pos_size_type get_element_dimensions(QString p_identifier, QString p_file,
- QString p_char = "");
+ QString p_misc = "");
// Returns the value to you
QString get_design_element(QString p_identifier, QString p_file,
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 19a00c52..16ec73e8 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -1160,7 +1160,7 @@ void Courtroom::set_size_and_pos(QWidget *p_widget, QString p_identifier,
QString filename = "courtroom_design.ini";
pos_size_type design_ini_result =
- ao_app->get_element_dimensions(p_identifier, filename, p_char);
+ ao_app->get_element_dimensions(p_identifier, filename, ao_app->get_chat(p_char));
if (design_ini_result.width < 0 || design_ini_result.height < 0) {
qDebug() << "W: could not find \"" << p_identifier << "\" in " << filename;
diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp
index 919657cb..45df30dc 100644
--- a/src/text_file_functions.cpp
+++ b/src/text_file_functions.cpp
@@ -318,14 +318,14 @@ QPoint AOApplication::get_button_spacing(QString p_identifier, QString p_file)
pos_size_type AOApplication::get_element_dimensions(QString p_identifier,
QString p_file,
- QString p_char)
+ QString p_misc)
{
pos_size_type return_value;
return_value.x = 0;
return_value.y = 0;
return_value.width = -1;
return_value.height = -1;
- QString f_result = get_design_element(p_identifier, p_file, p_char);
+ QString f_result = get_design_element(p_identifier, p_file, p_misc);
QStringList sub_line_elements = f_result.split(",");