#endif
#include "wx/clipbrd.h"
+
#include "wx/textfile.h"
#include "wx/caret.h"
wxTextCoord wxTextCtrl::GetRowCount() const
{
wxTextCoord count = GetLineCount();
+ if (count == 0)
+ return 0;
if ( WrapLines() )
{
count = GetFirstRowOfLine(count - 1) +