diff options
Diffstat (limited to 'src/Remember.cc')
-rw-r--r-- | src/Remember.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Remember.cc b/src/Remember.cc index c49ee35..b15a861 100644 --- a/src/Remember.cc +++ b/src/Remember.cc | |||
@@ -354,7 +354,6 @@ int Remember::parseApp(ifstream &file, Application &app, string *first_line) { | |||
354 | iss >> w >> h; | 354 | iss >> w >> h; |
355 | app.rememberDimensions(w,h); | 355 | app.rememberDimensions(w,h); |
356 | } else if (str_key == "Position") { | 356 | } else if (str_key == "Position") { |
357 | FbTk_istringstream iss; | ||
358 | unsigned int r= 0; | 357 | unsigned int r= 0; |
359 | unsigned int x= 0; | 358 | unsigned int x= 0; |
360 | unsigned int y= 0; | 359 | unsigned int y= 0; |
@@ -370,13 +369,13 @@ int Remember::parseApp(ifstream &file, Application &app, string *first_line) { | |||
370 | else if ( str_option == "CENTER" ) r= POS_CENTER; | 369 | else if ( str_option == "CENTER" ) r= POS_CENTER; |
371 | else if ( str_option == "WINCENTER" ) r= POS_WINCENTER; | 370 | else if ( str_option == "WINCENTER" ) r= POS_WINCENTER; |
372 | else { | 371 | else { |
373 | iss.str(str_option); | 372 | FbTk_istringstream iss_r(str_option.c_str()); |
374 | iss >> r; | 373 | iss_r >> r; |
375 | } | 374 | } |
376 | } | 375 | } |
377 | 376 | ||
378 | iss.str(str_label.c_str()); | 377 | FbTk_istringstream iss_xy(str_label.c_str()); |
379 | iss >> x >> y; | 378 | iss_xy >> x >> y; |
380 | app.rememberPosition(x, y, r); | 379 | app.rememberPosition(x, y, r); |
381 | } else if (str_key == "Shaded") { | 380 | } else if (str_key == "Shaded") { |
382 | app.rememberShadedstate((str_label=="yes")); | 381 | app.rememberShadedstate((str_label=="yes")); |