fix crash where listbox::item_proxy==str
This commit is contained in:
		
							parent
							
								
									81018c21fd
								
							
						
					
					
						commit
						5653bd2416
					
				@ -4662,12 +4662,12 @@ namespace nana
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
				bool item_proxy::operator==(const std::string& s) const
 | 
									bool item_proxy::operator==(const std::string& s) const
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					return (text(pos_.item) == s);
 | 
										return (text(0) == s);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				bool item_proxy::operator==(const std::wstring& s) const
 | 
									bool item_proxy::operator==(const std::wstring& s) const
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					return (text(pos_.item) == to_utf8(s));
 | 
										return (text(0) == to_utf8(s));
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				item_proxy & item_proxy::operator=(const item_proxy& rhs)
 | 
									item_proxy & item_proxy::operator=(const item_proxy& rhs)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user