Pārlūkot izejas kodu

Merge pull request #108782 from skyace65/Spinbox-link-fix

Fix spinbox formatting to fix linking
Thaddeus Crews 3 dienas atpakaļ
vecāks
revīzija
0877199803
2 mainītis faili ar 7 papildinājumiem un 1 dzēšanām
  1. 1 1
      doc/classes/SpinBox.xml
  2. 6 0
      doc/tools/make_rst.py

+ 1 - 1
doc/classes/SpinBox.xml

@@ -51,7 +51,7 @@
 		</member>
 		<member name="custom_arrow_step" type="float" setter="set_custom_arrow_step" getter="get_custom_arrow_step" default="0.0">
 			If not [code]0[/code], sets the step when interacting with the arrow buttons of the [SpinBox].
-			[b]Note:[/b] [member Range.value] will still be rounded to a multiple of [member step].
+			[b]Note:[/b] [member Range.value] will still be rounded to a multiple of [member Range.step].
 		</member>
 		<member name="editable" type="bool" setter="set_editable" getter="is_editable" default="true" keywords="readonly, disabled, enabled">
 			If [code]true[/code], the [SpinBox] will be editable. Otherwise, it will be read only.

+ 6 - 0
doc/tools/make_rst.py

@@ -2151,6 +2151,12 @@ def format_text_block(
                                         state,
                                     )
 
+                                elif class_def.properties[target_name].overrides is not None:
+                                    print_error(
+                                        f'{state.current_class}.xml: Invalid member reference "{link_target}" in {context_name}. The reference must point to the original definition, not to the override.',
+                                        state,
+                                    )
+
                             elif tag_state.name == "signal" and target_name not in class_def.signals:
                                 print_error(
                                     f'{state.current_class}.xml: Unresolved signal reference "{link_target}" in {context_name}.',