diff options
author | nyamatongwe <unknown> | 2000-04-01 02:01:28 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-04-01 02:01:28 +0000 |
commit | 0e6e05226f69f7bdd5fe4415a43be5be882b414c (patch) | |
tree | a4a8d14a669ffe05bef03dc47f76262bc25b2e41 /src/Editor.cxx | |
parent | c7b2ff7108860ebc5c8bd56f435ca31b3b4c4065 (diff) | |
download | scintilla-mirror-0e6e05226f69f7bdd5fe4415a43be5be882b414c.tar.gz |
Fixed warnings from Borland compiler.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index e06bd496d..983568ec2 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -652,11 +652,10 @@ void Editor::PaintSelMargin(Surface *surfWindow, PRectangle &rc) { sprintf(number, "%d", line + 1); if (foldFlags & 64) sprintf(number, "%X", pdoc->GetLevel(line)); - int xpos = 0; PRectangle rcNumber=rcMarker; // Right justify int width = surface->WidthText(vs.styles[STYLE_LINENUMBER].font, number, strlen(number)); - xpos = rcNumber.right - width - 3; + int xpos = rcNumber.right - width - 3; rcNumber.left = xpos; if ((visibleLine < cs.LinesDisplayed()) && cs.GetVisible(line)) { surface->DrawText(rcNumber, vs.styles[STYLE_LINENUMBER].font, @@ -3608,7 +3607,6 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) { case SCI_SEARCHNEXT: case SCI_SEARCHPREV: return SearchText(iMessage, wParam, lParam); - break; case SCI_SETCARETPOLICY: caretPolicy = wParam; |