Changeset 953
- Timestamp:
- 05/18/10 22:28:35 (14 years ago)
- Location:
- library/bdm/base
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.cpp
r950 r953 191 191 void pdf::from_setting ( const Setting &set ) { 192 192 root::from_setting( set ); 193 shared_ptr<RV> r = UI::build<RV> ( set, "rv", UI::optional ); 194 if ( r ) { 195 set_rv ( *r ); 196 } 197 198 r = UI::build<RV> ( set, "rvc", UI::optional ); 199 if ( r ) { 200 set_rvc ( *r ); 201 } 193 UI::get(rv, set, "rv", UI::optional ); 194 UI::get(rvc, set, "rvc", UI::optional ); 202 195 } 203 196 -
library/bdm/base/bdmbase.h
r950 r953 763 763 void from_setting ( const Setting &set ) { 764 764 root::from_setting( set ); 765 shared_ptr<RV> r = UI::build<RV> ( set, "rv", UI::optional ); 766 if ( r ) { 767 set_rv ( *r ); 768 } 765 UI::get(rv, set, "rv", UI::optional ); 769 766 } 770 767 … … 1309 1306 //!@} 1310 1307 void from_setting ( const Setting &set ) { 1311 shared_ptr<RV> r = UI::build<RV> ( set, "yrv", UI::optional ); 1312 if ( r ) { 1313 set_yrv ( *r ); 1314 } 1315 shared_ptr<RV> r2 = UI::build<RV> ( set, "rvc", UI::optional ); 1316 if ( r2 ) { 1317 rvc = *r2; 1318 } 1319 shared_ptr<RV> r3 = UI::build<RV> ( set, "rv", UI::optional ); 1320 if ( r3 ) { 1321 set_rv ( *r3 ); 1322 } 1308 UI::get(yrv, set, "yrv", UI::optional ); 1309 UI::get(rvc, set, "rvc", UI::optional ); 1310 RV r; 1311 UI::get(r, set, "rv", UI::optional ); 1312 set_rv ( r ); 1323 1313 1324 1314 UI::get ( log_level, set, "log_level", UI::optional );