summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-09-28 19:22:37 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-09-28 19:22:37 +0900
commitf078a0e4db0e5c378b794881447d0baa9e6a9e06 (patch)
treedb5c35ac55319b3ba388462824314872def4919e
parent4db0886f794c4742bf71a9ed106918bbbad3e675 (diff)
Fix nullptr accesssandbox/knimitz/test
Change-Id: I6e22acefdf885efc4c2517265ff38cbac07cef48 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/qlibwindowmanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qlibwindowmanager.cpp b/src/qlibwindowmanager.cpp
index bb9d6ce..38c6063 100644
--- a/src/qlibwindowmanager.cpp
+++ b/src/qlibwindowmanager.cpp
@@ -26,13 +26,15 @@ int QLibWindowmanager::init(int port, const QString &token) {
string ctoken = token.toStdString();
int ret_init = this->wm->init(port, ctoken);
- if(ret_init == 0) {
+ this->screen_info = new AGLScreenInfoPrivate;
+
+ // if(ret_init == 0) {
struct Screen scrn = this->wm->getScreenInfo();
this->screen_info->set_width_dp(scrn.width_dp);
this->screen_info->set_height_dp(scrn.height_dp);
this->screen_info->set_height_mm(scrn.width_mm);
this->screen_info->set_scale_factor(scrn.width_mm);
- }
+ // }
return ret_init;
}