aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-08-20 13:54:04 +1000
committernyamatongwe <nyamatongwe@gmail.com>2013-08-20 13:54:04 +1000
commit8b26f479923b34452ee12d38d79dfac47e9ff1d6 (patch)
tree5e00178825cdc1f5a6786257e827755ea244161f /src/ViewStyle.cxx
parentf69338319ce627f3d760fc1ea74c02cec4fc6118 (diff)
downloadscintilla-mirror-8b26f479923b34452ee12d38d79dfac47e9ff1d6.tar.gz
Fix bug where coordinates were relative to the text view instead of the whole view.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 7ef4f8cb3..5e2ad1ee7 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -409,6 +409,10 @@ bool ViewStyle::ProtectionActive() const {
return someStylesProtected;
}
+int ViewStyle::ExternalMarginWidth() const {
+ return marginInside ? 0 : fixedColumnWidth;
+}
+
bool ViewStyle::ValidStyle(size_t styleIndex) const {
return styleIndex < styles.size();
}