Exemple #1
0
	inline T get_as(int col_index)
	{
		lex_conv<std::string, T> convert_from_str;
		return convert_from_str(
			::PQgetvalue(
				pg_result,
				row_ref,
				col_index
			)
		);
	}
bool ConvertDialog::Validate()
{
  if( 
      m_aspectratio_from->GetSelection() == m_aspectratio_to->GetSelection() ||
      (m_aspectratio_from->GetSelection() == CONVERT_CURRENT && Prefs::get().var(wxT("view_aspectratio")).sval() == convert_to_str()) ||
      (m_aspectratio_to->GetSelection() == CONVERT_CURRENT && Prefs::get().var(wxT("view_aspectratio")).sval() == convert_from_str())
    )
  {
    return false;
  }
  return true;
}