mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-18 14:22:34 -06:00
22 lines
No EOL
309 B
C++
22 lines
No EOL
309 B
C++
#include "RichEdit.h"
|
|
|
|
namespace Upp {
|
|
|
|
void DiagramEditor::SetCursor(int i)
|
|
{
|
|
cursor = i;
|
|
if(i < 0)
|
|
return;
|
|
sel.FindAdd(i);
|
|
GetAttrs();
|
|
}
|
|
|
|
DiagramItem& DiagramEditor::CursorItem()
|
|
{
|
|
static DiagramItem nil;
|
|
if(cursor >= 0 && cursor < data.item.GetCount())
|
|
return data.item[cursor];
|
|
return nil;
|
|
}
|
|
|
|
} |